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

error: illegal character: '\ufeff' in java

Got this error when compiled java code in ubuntu.![Got this error][1]error: illegal character: '\ufeff'import java.net.*;^error: class, interface, or enum expectedimport java.net.*; ^

View Article


How to efficiently calculate the fraction (valid UTF8 byte sequence of length...

This will be a long post. And it absolutely has nothing to do with homework, I am just curious, and this won't have immediate practical benefits, but that is like pursuing pure science, you never know...

View Article


How can I set LANG to ASCII?

I'm accessing an Ubuntu machine using PuTTY, and using gcc.The default LANG environment variable on this machine is set to en_NZ.UTF-8, which causes GCC to think PuTTY is capable of displaying UTF-8...

View Article

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 139390:...

I have a web-scraper built using the python package tweepy and I always use it to gather tweets for research. Suddenly, it doesn't seem to work anymore. The issue is it can no longer decode all the...

View Article

How to correctly read and convert an ANSI encoded file to String in Dart?...

I'm trying to read a text file saved with ANSI encoding on my system (Windows) using Dart. The content appears with strange characters (accents, cedillas, etc.). How can I read this file correctly and...

View Article


How can I quickly split an utf8 string into chars in OCaml?

I'm handling a string with special characters and I want to split it into Unicode characters, but apparently OCaml strings are encoded in utf-8 while OCaml chars are 1-byte values, and it appears that...

View Article

typedef std::basic_string ustring; [closed]

I just upgraded from Xcode 16.2 to Xcode 16.3, compiling with C++11I have been using this definition for years:typedef std::basic_string<unsigned char> ustring;but now, apparently, this...

View Article

std::basic_string is undefined in Xcode 16.3

I just upgraded from Xcode 16.2 to Xcode 16.3, compiling with C++11.I have been using this definition for years:typedef std::basic_string<unsigned char> ustring;But now, apparently, this...

View Article


How fix encoding error (UTF-8) in firebase studio?

In firebase studio's Code editor not showing UTF encoded texts.[1]I tried with options in "Reopen with Encoding" but still not changed to any thing.How i fix this?

View Article


Why does Encoding.UTF8.GetMaxByteCount(1) return 6?

The TLDR here is simple: What's a sequence of chars that would make either UTF8's Encoding or Encoder return 6 (or even 5) bytes for a single char, as GetMaxByteCount implies it might?The...

View Article

PyPy3 on Windows 11 doesn't display non-ASCII characters correctly

PyPy3 doesn't display non-ASCII UNICODE characters correctly.A simple example, the following:b'\xce\x9e\xce\xad\xce\xbd\xce\xb7 \xce\x93\xce\xae\xce\xb9\xce\xbd\xce\xbf\xcf\x82'.decode('utf8')Should...

View Article

Decoding Base64 string doesn't translate special chars

I have an XML file encoded as Base64, this file has embeded images in it.My problem is when I try to decode it:String sample is hereHere is my code:UTF8 Version: This one can be decoded and loaded into...

View Article

Is there any other good html package in flutter for webscrapping?

I need to scrap this website https://student.kletech.ac.in/code/index.php If i use darts html and http package i get error....Future<void> signin() async{ var res = await...

View Article


How to remove the default charset in HttpClient Request Header C#

I am trying to hit an API from C# code. I am unable to get the response and receiving the status code "500 - Internal Server error".Found the reason that the "Charset-UTF8" is getting appended in the...

View Article

A script to change all tables and fields to the utf-8-bin collation in MYSQL

Is there a SQL or PHP script that I can run that will change the default collation in all tables and fields in a database?I can write one myself, but I think that this should be something that readily...

View Article


How can retrieve / decode html utf-8 character with unicode?

When I try to visit any website which is integrated with unicode हिंदी text then browser display that contain like...¤ªà¤•à¥�षी à¤•े à¤ªà¤¾à¤¸ à¤µà¥‹à¤¸à¤¾à¤°à¥€ à¤¸à¥�ख...

View Article

Image may be NSFW.
Clik here to view.

UTF-8 support in reportlab (Python)

ProblemI can't create a PDF from UTF-8 encoded text using reportlab. What I get is a document full of black squares.See the screenshot below:Prerequisitespip install faker reportlabCodeimport...

View Article


ERRORmain.py:71: hdlmake()'utf-8' codec can't decode

I am interested in building a project from a repository on GitHub: MEN A25 SBC PCIe-VME Bridge Gateware. I followed the steps provided for generating the FPGA bitstream:Fetch all git submodules with...

View Article

Using PowerShell to write a file in UTF-8 without the BOM

Out-File seems to force the BOM when using UTF-8:$MyFile = Get-Content $MyPath$MyFile | Out-File -Encoding "UTF8" $MyPathHow can I write a file in UTF-8 with no BOM using PowerShell?Update...

View Article

c++ can't get "wcout" to print unicode, and leave "cout" working

can't get "wcout" to print unicode string in multiple code pages, together with leaving "cout" to workplease help me get these 3 lines to work together.std::wcout<<"abc...

View Article
Browsing all 1052 articles
Browse latest View live


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