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

Converting UniString to string with Hebrew characters doesn’t work

Hello

I am trying to convert a UniString which has Hebrew characters in it (it looks good on debug), to const char or string,.
The UniString with Hebrew characters looks good but the conversion (.toxstr().get()) kills the Hebrew characters (they become jibrish).
That’s a real problem for me.

Please help!

Thanks
1 Solution

Accepted Solutions
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
I recommend you to use IO::FileSystem::Copy method instead:
#include "FileSystem.hpp"

IO::Location from (uniString1);
IO::Location to (uniString2);
IO::fileSystem.Copy (from, to);
It's easier than converting

Go to post

3 Replies 3
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

Why do you want to convert the GS::UniString object to const char* or std::string?
Could you show us please the relevant part of your code?

Regards,
Tibor
Anonymous
Not applicable
Tibor wrote:
Hi,

Why do you want to convert the GS::UniString object to const char* or std::string?
Could you show us please the relevant part of your code?

Regards,
Tibor
Hi
I want to use CopyFile (c++ function) and it only works with string..
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
I recommend you to use IO::FileSystem::Copy method instead:
#include "FileSystem.hpp"

IO::Location from (uniString1);
IO::Location to (uniString2);
IO::fileSystem.Copy (from, to);
It's easier than converting

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!