Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Browsing all 1041 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Set charset different from UTF-8 in JSON Response

I have this get request in my controller in ASP.NET Core project[HttpGet][Route("api/controller/getlastresult/{id}")]public IActionResult GetLatestResultForController(string id){ Response.ContentType =...

View Article


Image may be NSFW.
Clik here to view.

Unicode character ſ is matched as itself and as 's.'

I just tried to clean up an old German text containing the character 'ſ' (U+017F). I wanted to replace it with 's', but when I used :%s/ſ/s/g not only that character got replaced but also all...

View Article


Save all files in Visual Studio project as UTF-8

I wonder if it's possible to save all files in a Visual Studio 2008 project into a specific character encoding. I got a solution with mixed encodings and I want to make them all the same (UTF-8 with...

View Article

Image may be NSFW.
Clik here to view.

xml file from ISO-8859-2 to UTF-8 in python

I need your help to resolve an encoding issue as it seems.I have a lot of input files that have the same pattern has this below :<?xml version='1.0' encoding='iso-8859-1'?><root><Module...

View Article

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 90:...

I want to use a pretrained llm model from github repository. While i'm trying to install model package, i get following UnicodeDecodeError message.× python setup.py egg_info did not run successfully.│...

View Article


Image may be NSFW.
Clik here to view.

pdftk unicode works in preview but not adobe acrobat

I generate a PDF file and the unicode text appears in macos preview but not acrobat.I have the following fdf file%FDF-1.21 0 obj<</FDF<</Fields [<</T (name)/V...

View Article

PowerShell : Set-Content Replace word and Encoding UTF8 without BOM

I'd like to escape \ to \\ in csv file to upload to Redshift.Following simple PowerShell script can replace $TargetWord \ to $ReplaceWord \\ , as expected, but export utf-8 with bom and sometimes...

View Article

How to set charset="utf-8" in the javascript file itself

I am trying to set charset="utf-8" inside the javascript file itself, not in the script tag,I know that I can do this:<script type="text/javascript" charset="UTF-8"...

View Article


Dompdf problem with displaying Nepali character

I am using Dompdf to create a pdf for my Nepali content. I have written following code in my controller:public function generatePDF(Request $request){ $data = $this->news->where('slug',...

View Article


BSONError in MongoDB Compass

I've newly installed the MongoDB Windows Server, Mongosh and MongoDB Compass.Everytime I try to connect Compass to the my local Server, it throws the following error:Failed to retrieve server...

View Article

Create HMAC SHA-1 in JS with byte array

I've created the following utility function which should create an HMAC SHA-1 hash in TypeScript using crypto-js:import hmacSha1 from 'crypto-js/hmac-sha1'export function hotp( hmac: Uint8Array,...

View Article

If UTF-8 is an 8-bit encoding, why does it need 1-4 bytes?

On the Unicode site it's written that UTF-8 can be represented by 1-4 bytes. As I understand from this question UTF-8 is an 8-bit encoding.So, what's the truth?If it's an 8-bit encoding, then what's...

View Article

Image may be NSFW.
Clik here to view.

How to read a file that contains both ANSI and UTF-8 encoded characters

I get a file from a third party. The file seems to contain both ANSI and UTF-8 encoded characters (not sure if my terminology is correct).Changing the encoding in Notepad++ yields the following:So when...

View Article


Reading Emojis through a pipe in C

I have a pipe with an endless amount of strings being written to it. These strings are a mix of ASCII and Emojis. The problem I am having is I am reading them like thischar msg[100];int length =...

View Article

How to convert from Java ASCII properties to UTF8 (Java 9) properties

I have a Java properties file with unicode escapes (\u0123) in them that I need to convert to the new Java 9 UTF-8 format. I've tried multiple options with iconv and uconv (from ICU) but was unable to...

View Article


UTF-8 string has too many bytes using SBCL and babel on Windows 64 bits

The UTF-8 string in example seems to be coded with too many bytes!The input string: "👉TEST📍TEST"“👉” (U+1F449): A hand pointing right“T”, “E”, “S”, “T”: Basic Latin letters“📍” (U+1F4CD): A round...

View Article

UTF-8 issue with excel

I am trying to make excel recognize UTF-8 file and exporting file with UTF-8-BOM file with codeBufferedWriter bufferedWriter = new BufferedWriter( new OutputStreamWriter(new...

View Article


How to slice a string as utf8 in rust

I am writing a rust toy parser, and I want to handle UTF-8 char in my string input. I knew that I need to use chars method to get UTF-8 iterator to correctly get a UTF-8 char, but I want to slice...

View Article

Can't we make a better variable-length character encoding with just using the...

What if we used the extra bit as a flag? If the flag is set (1), it indicates that the character continues into the next byte. If not (0), it’s the end of the character. Wasn't this better? It be...

View Article

Conversion between NVARCHAR to VARCHAR

I've got an Oracle DB with ALL the character columns defined as NVARCHAR or NCHAR or NCLOB, using charset UTF-16.Now I want to migrate to a new DB that has charset UTF-8. Since it can store unicode...

View Article
Browsing all 1041 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>