473,405 Members | 2,334 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,405 software developers and data experts.

How to convert a UTF-8 string to UTF-16 string in vc

tt
algorithm or API is expect
thanks
Nov 17 '05 #1
5 7099
CA2W(str, CP_UTF8)

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com

"tt" <te> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
algorithm or API is expect
thanks

Nov 17 '05 #2
tt
thank you!
but I have to use this convert in WinCE, and WinCE does't support CP_UTF8
cenvert,
Can you tell me the convert algorithm or website about it?
"Kyle Alons" <re***@to.newsgroup> дÈëÓʼþ
news:ej**************@tk2msftngp13.phx.gbl...
CA2W(str, CP_UTF8)

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com

"tt" <te> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
algorithm or API is expect
thanks


Nov 17 '05 #3
http://www.faqs.org/rfcs/rfc3629.html

Note that you can probably do the simpler CESU-8 encoding/decoding as
described there, if you don't have to handle Unicode characters above
U+FFFF.

"tt" <te> wrote in message news:OZ**************@TK2MSFTNGP11.phx.gbl...
thank you!
but I have to use this convert in WinCE, and WinCE does't support CP_UTF8
cenvert,
Can you tell me the convert algorithm or website about it?
"Kyle Alons" <re***@to.newsgroup> дÈëÓʼþ
news:ej**************@tk2msftngp13.phx.gbl...
CA2W(str, CP_UTF8)

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com

"tt" <te> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
algorithm or API is expect
thanks



Nov 17 '05 #4
tt wrote:
algorithm or API is expect
thanks


mbstowcs()

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com

Nov 17 '05 #5
"tt" <te> wrote in news:#V**************@TK2MSFTNGP12.phx.gbl:
algorithm or API is expect
thanks

Unicode.org provides platform-independent source code for various UTF
conversions (including the on you need).

Look in http://www.unicode.org/Public for CVTUTF.

Alex.
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
1
by: Logan X via .NET 247 | last post by:
It's official....Convert blows. I ran a number of tests converting a double to an integer usingboth Convert & CType. I *ASSUMED* that CType would piggy-back ontop of Convert, and that performance...
25
by: cory | last post by:
Hi, I have an Access database and am having an ASP.NEt application written for it. It is almost complete. I have a hosting company that I signed up with a month ago but before I did anything I...
7
by: whatluo | last post by:
Hi, all I'm now working on a program which will convert dec number to hex and oct and bin respectively, I've checked the clc but with no luck, so can anybody give me a hit how to make this done...
2
by: fabrice | last post by:
Hello I'm getting an error during a .vb file compilation. My command is : vbc /t:library /r:system.web.dll /r:system.dll /r:mscorlib.dll myFile.vb The error is :
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
5
by: Bob Homes | last post by:
In VB6, foreground and background colors of controls had to be assigned a single number. If you knew the RGB values for the color, you still had to convert them into the single number accepatable...
4
by: sck10 | last post by:
Hello, I am trying to test for IsNumeric using C# with the following: public bool IsNumeric(object TestValue) { try { int i = Convert.ToInt32(TestValue.ToString()); return true;
2
by: kirke | last post by:
Hi, I have a datetime column named dtDateTime. its format is "Oct 27 2006 12:00:00 " I want to group by only date part of it and count my code is $sql1="SELECT ...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.