cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

String into UniString?

Anonymous
Not applicable
How can I convert a string to UniString?

Thanks!
1 ACCEPTED SOLUTION
3 REPLIES 3

Solution
leilei
Enthusiast
Hi, you can do this:
std::string sTest;
GS::UniString sToUnistr;
sToUnistr=GS::UniString(sTest.c_str());

leilei
Enthusiast
Sometimes you need to set character types.When I read the file path through string, I need to do this when I convert to unistring.
std::string sTest;
GS::UniString sToUnistr;
sToUnistr=GS::UniString(sTest.c_str(),CC_SimpChinese);

I want to use Hangul.

 

std::string sTest;
GS::UniString sToUnistr;
sToUnistr=GS::UniString(sTest.c_str(),???????);

 

I find that

CC_Korean in CH.hpp

in API Development Kit 26.3000\Support\Modules\GSRoot

 

Thank you so much ^^

AC25 5010 / AC26 4019 on window 11

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!