473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

utf-16 hex to binary data (the word), how?

1
for example this word:
http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=55c0

UTF-16 hex is 55C0, UTF-8 is E5 97 80, and use hexdec(55C0) can get dec 21952.

I know that to display the word from the UTF-8 is using pack("H*", "e59780")

but now, for example, I only have the UTF-16 hex, 55C0, how can I display the word? any idea?
Apr 11 '07 #1
0 1466

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: lawrence | last post by:
Someone on www.php.net suggested using a seems_utf8() method to test text for UTF-8 character encoding but didn't specify how to write such a method. Can anyone suggest a test that might work?...
4
by: Stano Paska | last post by:
Hi, I have one problem. In file aaa.txt I have slovak letters in utf-8. zcaron scaron aacute ocircumflex tcaron
1
by: Luke | last post by:
Python doesn't seem to read UTF-8 properly from an interactive session. Am I doing something wrong? luked@sor ~ $ echo $LANG en_AU.UTF-8 luked@sor ~ $ python Python 2.3.4 (#1, Aug 12 2004,...
0
by: Andrey | last post by:
hi, xmldom accepts win1251 but deals with UTF-8 only my Client app. will be not happy seeing UTF-8 in incoming XML messages so --UTF-8 -> Win1251 --select ascii('Đ')*65535+ascii('š') from...
2
by: Chris | last post by:
I am developing an web application which needs to support all kinds of languages, like english, european character set, and other asian character set. Therefore, UTF-8 can include all those...
1
by: yawnmoth | last post by:
Is there a way to convert normal strings to UTF-7 encoded strings? ie. where < is +ADw-, where > is +AD4-, etc.? I was thinking that utf8_encode might encode something similar enough to UTF-8...
2
by: Mullin Yu | last post by:
I want to develop a middle tier module of big5 to/from utf-8 conversion module by using .NET platform. utf-8 big5 -------> -------> <------ ...
30
by: Ian Ward | last post by:
When I run the following code in a terminal with the encoding set to UTF-8 I get garbage on the first line, but the correct output on the second. import curses s = curses.initscr()...
1
by: Helicon | last post by:
Is there a way to encode javascript into UTF-7 characters? Almost any Web client software support UTF-7/UTF-8 encoding for text. Can we then have a meta tags in html page to instruct browser to...
0
by: Petr Prikryl | last post by:
Ahoj všeci, Tak nějak prakticky poprvé se dostávám k tomu, jak přečíst unicode řetězce ze souboru, který je uložen ve formátu UTF-8 se signaturou na začátku (BOM). Nějak se mi nedaří. Mám...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.