Top "Unicode-string" questions

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

Why is the length of this string longer than the number of characters in it?

This code: string a = "abc"; string b = "A𠈓C"; Console.WriteLine("Length a = {0}", a.Length); Console.WriteLine("Length b = {0}", b.…

c# .net string unicode unicode-string
base64 encoding unicode strings in python 2.7

I have a unicode string retrieved from a webservice using the requests module, which contains the bytes of a binary …

python character-encoding base64 unicode-string python-unicode
Convert Unicode character to NSString

I have received string from webservice which contains Unicode character. I want to convert that To plain NSString. so How …

iphone utf-8 unicode-string
How to work with unicode in Python

I am trying to clean all of the HTML out of a string so the final output is a text …

python string unicode replace unicode-string
How to convert AnsiString to UnicodeString in Delphi XE4

exzample code: var str1 : String; str2 : AnsiString; .... str2 := ....; str1 := String(str2); I converted such as above,but it didn't work.…

delphi delphi-xe4 unicode-string ansistring
Python .split() without 'u

In Python, if I have a string like: a =" Hello - to - everybody" And I do a.split('-') …

python unicode-string
Is it advisable to use strcmp or _tcscmp for comparing strings in Unicode versions?

Is it advisable to use strcmp or _tcscmp for comparing strings in Unicode versions?

c windows unicode unicode-string tchar
Arabic characters don't show in excel VBA code

I can't write arabic strings in VBA code in excel, it shows as weird characters. Tried it on many machines …

excel vba locale arabic unicode-string
Converting a \u escaped Unicode string to ASCII

After reading all about iconv and Encoding, I am still confused. I am scraping the source of a web page …

r unicode text-processing iconv unicode-string
Python 3 - TypeError: a bytes-like object is required, not 'str'

I'm working on a lesson from Udacity and am having some issue trying to find out if the result from …

python-3.x urllib unicode-string