cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

String into UniString?

How can I convert a string to UniString?

Thanks!
1 Solution

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

Go to post

3 Replies 3
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);
LeeJaeYoung
Virtuoso

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 ^^

AC27 on window 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!