Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow

Image may be NSFW.
Clik here to view.

How can I fix character encoding issue in HTML?

I have a web page, and if I open it in Windows Notepad, a piece of text looks like this:Avertissement sur la sécuritéBut if I open it in Notepad++, it looks like:Notepad++ also says the file is in...

View Article


utf-8 encoded persian text in anchor tag not properly shown by IE8

I have a project which is in Persian language. On the admin side of this project some Persian text in anchor tag and button tag displays wrong although I use charset=utf-8.<!DOCTYPE html PUBLIC...

View Article


Is there a way to know if an unicode character is available in installed fonts?

I'm using the Blocks.txt from unicode.org which defines unicode character ranges.I made some tool to display those character, per range, in a browser.I downloaded the Noto font package.Obviously I...

View Article

Python3 fpdf is giving me an error latin-1 codec can't encode character

When I run the code below I get the following traceback:Traceback (most recent call last): File "C:\demo\test.py", line 11, in <module> pdf.output("splintered.pdf") File...

View Article

change character ก to Ď during xls2csv -d utf-8 /source.xls >desination.csv

When I convert an XLS file to CSV using xls2csv there is a problem that the character 'ก' is converted to 'Ď'.My command is:xls2csv -d utf-8 /test.xls>/test.csvOther characters of Thai and other...

View Article


Convert from unrecognised character to normal form [closed]

I have a error with my file. That is, all the characters are like "Giá»âºi tính". I want to use Java to write a program that convert those characters to normal ones. I have tried to convert them to...

View Article

Scrapling Save PDF File Locally

I have to scrape a website which returns a static PDF file. The only Python package that can access the document successfully is scrapling. However, the PDF file returned is not saved correctly in my...

View Article

How to display UTF-8 characters in phpMyAdmin?

I have my database properly set to UTF-8 and am dealing with a database containing Japanese characters. If I do SELECT *... from the mysql command line, I properly see the Japanese characters. When...

View Article


Image may be NSFW.
Clik here to view.

How to pass Unicode utf8 as command line arguments to a Lua script?

I m building a command line tool using Lua, users may call my script with utf8 arguments.Programming in Lua 4th edition says:Several things in Lua “just work” for UTF-8 strings. Because Lua is 8-bit...

View Article


How to convert utf-8 string to urlencoded win1251 in javascript

I have a string, for instance "холодильник" and looking for a way to convert it to url encoded win1251 string which is %F5%EE%EB%EE%E4%E8%EB%FC%ED%E8%EAI found utf8_to_win1251 function here Encoding...

View Article

Modify encodings of accented characters in value labels

I am having a very hard time with accented characters in a stata file I have to import into R. I solved one problem over here, but there's another problem.After import, anytime I use the lookfor...

View Article

Python reading from a file and saving to utf-8

I'm having problems reading from a file, processing its string and saving to an UTF-8 File.Here is the code:try: filehandle = open(filename,"r")except: print("Could not open file "+ filename) quit()...

View Article

Can you provide and example of utl_raw.convert + utl_raw.cast_to_varchar2?

Can somebody please tell me how the utl_raw.convert works with utl_raw.cast_to_varchar2 in Oracle 11g by giving a sample code as i am not able to find an example use case online.ThanksGautam

View Article


C++ argv with UTF-8 values are incorrect in the program

I'm using Windows 11. I have a program "Hello.exe"#include <iostream>int main(int argc, char* argv[]){ for (int i = 0; i < argc; i++) { std::cout << argv[i] << std::endl; }}If I...

View Article

New Object PSCredential not working - using Unicode punctuation syntactically

I'm trying to accept username and password as params to a Powershell script but the new-Object $UserID="Name"$SecurePassword=convertto-securestring -AsPlainText -Force -String $PasswordNew-object...

View Article


Windows C++: Opening a file where path contains a non-ASCII character fails

I have the problem that in C++ with Visual Studio 2017, I can't open a file which has a non-ASCII character in the path.Let's suppose I have a path D:\üab and a file test.txt in there.The non-Unicode...

View Article

Converting UTF8 to ANSI with Ruby

I have a Ruby script that generates a UTF8 CSV file remotely in a Linux machine and then transfers the file to a Windows machine thru SFTP. I then need to open this file with Excel, but Excel doesn't...

View Article


TVF query error: "Only support csv data in utf8 codec"

I used the table value function in Doris 2.1.8 to query a file located on HDFS.When I used select *, the query was successful, but when I used select count(1), an error occurred:Only support csv data...

View Article

Character-encoding problem with string literal in source code (utf8 no bom)

$logstring = Invoke-Command -ComputerName $filesServer -ScriptBlock { param( $logstring, $grp ) $Klassenbuchordner = "KB "+ $grp.Gruppe $Gruppenordner = $grp.Gruppe $share = $grp.Gruppe $path =...

View Article

javascript chinese/japanese character decoding

I created a JSONP function on the server and returns a UTF-8 encoded json object like thisapplyLocalization({"Name":"%E5%90%8D%E5%89%8D","Age":"%E5%B9%B4%E9%BD%A2"});on my javascript on the client...

View Article

How to force Notepad++ to open files only in UTF-8?

I have a file with the following code: print "Hello World".In Encoding section (Notepad++ Menu), Encode in UTF-8 is chosen.I close the file, and open it again: nothing has been changed. Perfect.I add...

View Article


Determine NLS_LANG on linux

How do I determine the NLS_LANG setting for my Oracle Client on linux?I haven't set the NLS_LANG explicitly.Is it necessary to set and export the variable NLS_LANG=AMERICAN_AMERICA.AL32UTF8 for...

View Article


IBMMQ consumer application unable to consume TextMessage ( JMSCMQ1049: The...

I have a consumer application that uses IBMMQ to consume messages from the queue manager. I have no control over the publisher, only the consumer. Here is the part of the code for my...

View Article

Pino Pretty not rendering accented characters correctly

I'm using pino with pino-pretty in a Node.js + TypeScript project, and I'm logging strings with accented characters (like ç, ã, é, etc.).Example:logger.info("Olá, Lucas! Teste de acentuação: ç, ã, é,...

View Article

How do I get UTF-8 to work flawlessly in modern PowerShell on Windows?

I have a C++ program which outputs raw UTF-8 and works flawlessly on Linux, but on Windows shells the output is not as nice. "®" turns into "┬«", "©" turns into "┬⌐", for example.There is also a Python...

View Article


How to convert utf-8 encoding to a string?

I was trying to preprocess some tweet text. The text was in a csv file that has been scraped by tweepy. I am using Jupyter Notebook and let us suppose the it is stored in variable 'p' and the text...

View Article

Implementing UTF-8 compatible C Standard Library functions on Windows...

On Windows, the default C standard library functions (e.g., fopen, mkdir, scanf) operate using the system's ANSI codepage, which causes issues when dealing with UTF-8 encoded paths or console...

View Article

Force encode from US-ASCII to UTF-8 (iconv)

I'm trying to transcode a bunch of files from US-ASCII to UTF-8.For that, I'm using iconv:iconv -f US-ASCII -t UTF-8 file.php > file-utf8.phpMy original files are US-ASCII encoded, which makes the...

View Article

UnicodeDecodeError When Connecting to PostgreSQL Using psycopg2 in Python

I am encountering an issue when trying to connect to PostgreSQL using the psycopg2 library in Python. I get the following error:Traceback (most recent call last): File...

View Article



Internet Explorer doesn't handle html encoding in URL (GWT)

Using GWT, I've got a webapp, and on a certain page it pulls a parameter from the URL that has the pipe character (|) encoded. So, for example, the full URL would be (in dev...

View Article


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