Get number of actual bytes in a string
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
- From: "TW" <tw@xxxxxxxxx>
- Date: Mon, 18 Sep 2006 14:20:49 +0100
Hi, i have a unicode string, i want to know how i can get the number of
actaul bytes the string is made up of. If i use str.length this gives number
of characters in the string which is not what i want.
Thanks
.
Relevant Pages
- Re: From python to LaTeX in emacs on windows
... > In the file there is international characters like é and ó. ... > I read the file into python as a string and suddenly the characters ... > Second problem: ... convert the unicode string back to a byte sequence. ... (comp.lang.python) - RE: Asking again - ResultSet.getString() & unicode
... Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ... I can get the unicode string correctly from sqlserver. ... T-SQL, when we inserting unicode string, it's recommended that we add "N" ... (microsoft.public.sqlserver.odbc) - Linguistically correct Python text rendering
... Unicode strings in Python? ... let's say I create this Unicode string in Arabic: ... is not correct rendering behavior for Arabic. ... (comp.lang.python) - Re: CHR$() and international characters.
... characters in the range 128-255. ... Be assured the string is being created correctly in PB/WIN 8.04. ... Unicode string and use the Windows API function MessageBoxW (the unicode ... (comp.lang.basic.powerbasic) - Re: Microsoft Layer for Unicode on Windows 95/98/Me systems
... >> then back to ANSI again for the API call. ... >> unicode string that VB is using. ... is pointing to a unicode string. ... > creates toolbar/menu and inserts code), and installs the referenced DLL. ... (microsoft.public.vb.winapi) |
|