sfo icon indicating copy to clipboard operation
sfo copied to clipboard

Please update to convert to utf8 string output.

Open mrdude2478 opened this issue 2 years ago • 6 comments

Please update your code to show proper utf8 encoded strings, for example:

BATMAN™: ARKHAM KNIGHT

This shows as - BATMANâ„¢: ARKHAM KNIGHT

Bytes that show â„¢ have not been converted to utf8 stings so do not show up as ™, there's many other games that have these type of characters where the bytes read and printed are not being decoded to the utf8 format.

Thanks.

Maybe this can help: https://dev.to/rdentato/utf-8-strings-in-c-2-3-3kp1

mrdude2478 avatar Apr 08 '22 19:04 mrdude2478

Thanks, I will have a look.

Currently, the characters are printed as they are, requiring an UTF-8 environment. On Unix systems, this should be the default.

If you are using Windows 10+, for the time being you could enable the UTF-8 beta feature: Settings - Time & Language - Language - Administrative language settings - Change system locale... - Beta: Use Unicode UTF-8 for worldwide language support The characters will then display properly.

hippie68 avatar Apr 08 '22 21:04 hippie68

Thanks for the quick reply, I will try that later. Thanks again - for this program. I made a basic gui for it with visual studio c# for quickly renaming my games/dlc etc. This program made that much easier so thanks for the effort you have put into this.

mrdude2478 avatar Apr 09 '22 02:04 mrdude2478

@hippie68

I made a few mods to your source code so it's C++ compatible, that way you can compile with gcc and g++, also as I am using on windows I changed some stuff in the debug settings to show me some extra hex info.

Here's the mods: sfo.zip

(use c++ 11 if compiling on windows: g++ sfo.cpp -O3 -std=c++11 -s -o sfo.exe)

mrdude2478 avatar Apr 10 '22 07:04 mrdude2478

It is displayed like this when I run the command, how can I make it look like this ★Test★ instead of ?Test? ?

On windows i see the stars but the param.sfo not show me

thezodiacox0 avatar Jul 12 '24 18:07 thezodiacox0

If activating the UTF-8 beta feature (see above) isn't helping enough, the new Windows Terminal, which is the default terminal in Windows 11 and also available as a separate download for Windows 10, should properly support all UTF-8 characters.

hippie68 avatar Jul 12 '24 19:07 hippie68

I have the utf-8 characters activated and it still comes out the same but when I type it in the terminal I get the symbol but in the sfo it is not seen.

I have a question too, can I re-record a save? I mean to change a param sfo from EU to Us

thezodiacox0 avatar Aug 17 '24 02:08 thezodiacox0