SOLVED!
Converting UniString to string with Hebrew characters doesn’t work
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-25
08:04 PM
- last edited on
2022-09-29
09:56 AM
by
Daniel Kassai
2019-11-25
08:04 PM
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
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
Solved! Go to Solution.
Labels:
- Labels:
-
Add-On (C++)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-26 01:56 PM
2019-11-26
01:56 PM
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

3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-26 09:27 AM
2019-11-26
09:27 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-26 01:19 PM
2019-11-26
01:19 PM
Tibor wrote:Hi
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
I want to use CopyFile (c++ function) and it only works with string..
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-26 01:56 PM
2019-11-26
01:56 PM
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
