Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » how to convert unicode to String
Re: how to convert unicode to String [message #49612 is a reply to message #49609] Wed, 14 March 2018 09:09 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
akebee wrote on Tue, 13 March 2018 03:34
such as

"nickname":"\u6728\u5076"

how to convert "\u6728\u5076" to "木偶" in U++


Depends on where "\u6728\u5076" comes from.... Usually you cannot use that literal with compiler directly.

Anyway, to get such string in U++, you can try:

WString s;
s.Cat(0x6728);
s.Cat(0x5076);

then maybe

String utf8 = s.ToString();
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to close the websocket connection
Next Topic: Curious problem wth Vector
Goto Forum:
  


Current Time: Mon Jun 09 20:16:44 CEST 2025

Total time taken to generate the page: 0.04627 seconds