Top "Unicode-string" questions

Use this tag for questions related to a Unicode String, such as UTF-8.

How I can print the wchar_t values to console?

Example: #include <iostream> using namespace std; int main() { wchar_t en[] = L"Hello"; wchar_t ru[] = L"Привет"; //Russian …

c++ string wchar-t unicode-string
Unicode Conversion in c#

i am trying to assign Unicode on string but it return "Привет" string as "Привет" But i need "Привет", i am converting by …

c# unicode-string
Python 3: os.walk() file paths UnicodeEncodeError: 'utf-8' codec can't encode: surrogates not allowed

This code: for root, dirs, files in os.walk('.'): print(root) Gives me this error: UnicodeEncodeError: 'utf-8' …

python python-3.x unicode unicode-string python-unicode
Convert hash.digest() to unicode

import hashlib string1 = u'test' hashstring = hashlib.md5() hashstring.update(string1) string2 = hashstring.digest() unicode(string2) UnicodeDecodeError: 'ascii' codec can't decode …

python unicode unicode-string
Convert between string, u16string & u32string

I've been looking for a way to convert between the Unicode string types and came across this method. Not only …

c++ string unicode c++11 unicode-string
Unicode file in notepad

What does it mean when I save a text file as "Unicode" in notepad? is it Utf-8, Utf-16 or Utf-32? …

unicode unicode-string
What is the range of Unicode Printable Characters?

Can anybody please tell me what is the range of Unicode printable characters? [e.g. Ascii printable character range is \…

unicode character-encoding unicode-string
how to split a unicode string into list

I have the following code: stru = "۰۱۲۳۴۵۶۷۸۹" strlist = stru.decode("utf-8").split() print strlist[0] my output is : ۰۱۲۳۴۵۶۷۸۹ But when i use: …

python string unicode utf-8 unicode-string
PDO and UTF-8 special characters in PHP / MySQL?

I am using MySQL and PHP 5.3 and tried this code. $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $con = mysql_connect("localhost", "…

php pdo unicode-string
Print unicode character in java

Displaying unicode character in java shows "?" sign. For example, i tried to print "अ". Its unicode Number is U+0905 and html …

java unicode utf-8 unicode-string