Top "Unicode" questions

Unicode is a standard for the encoding, representation and handling of text with the intention of supporting all the characters required for written text incorporating all writing systems, technical symbols and punctuation.

Decode UTF-8 with Javascript

I have Javascript in an XHTML web page that is passing UTF-8 encoded strings. It needs to continue to pass …

javascript unicode utf8-decode xhtml-transitional
Saving utf-8 texts in json.dumps as UTF8, not as \u escape sequence

sample code: >>> import json >>> json_string = json.dumps("ברי צקלה") >>> print json_string "\…

python json unicode utf-8 escaping
SyntaxError: Non-ASCII character '\xa3' in file when function returns '£'

Say I have a function: def NewFunction(): return '£' I want to print some stuff with a pound sign …

python unicode python-unicode
Placing Unicode character in CSS content value

I have a problem. I have found the HTML code for the downwards arrow, ↓ (↓) Cool. Now I need …

css unicode symbols unicode-escapes
How to correct TypeError: Unicode-objects must be encoded before hashing?

I have this error: Traceback (most recent call last): File "python_md5_cracker.py", line 27, in <module> m.…

python python-3.x unicode syntax-error hashlib
How do I check if a string is unicode or ascii?

What do I have to do in Python to figure out which encoding a string has?

python unicode encoding utf-8
How to find the length of a string in R

How to find the length of a string (number of characters in a string) without splitting it in R? I …

r string unicode string-length
How to get string objects instead of Unicode from JSON?

I'm using Python 2 to parse JSON from ASCII encoded text files. When loading these files with either json or simplejson, …

python json serialization unicode python-2.x
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1

I'm having a few issues trying to encode a string to UTF-8. I've tried numerous things, including using string.encode(…

python unicode utf-8
std::wstring VS std::string

I am not able to understand the differences between std::string and std::wstring. I know wstring supports wide characters …

c++ string unicode c++-faq wstring