- AuthorPosts
- July 3, 2024 at 3:24 am #29877SkeeveParticipant
Hi guys,
I’m currently porting a project to the Nintendo Switch console. This project contains a lot of config files in UTF16 format. However, wchar_t on Switch is defined as 32 bit and there is no easy way to change this.
So my question is: Can I save / convert / export UTF-16 files to UTF-32 with EmEditor? I couldn’t find the format in the encoding list, so all help is much appreciated.
Thanks!
Kind regards
MarcusJuly 3, 2024 at 4:32 am #29878Patrick CParticipantI once had a similar problem and resorted to PowerShell:
Get-Content .\my_UTF8_file.txt | Set-Content -Encoding utf32 my_UTF32_file.txt
or
Get-Content .\my_UTF16_file.txt | Set-Content -Encoding utf32 my_UTF32_file.txt
Kudos to https://superuser.com/questions/1163753/converting-text-file-to-utf-8-on-windows-command-prompt
+ reference https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-content?view=powershell-7.4#-encodingJuly 3, 2024 at 4:51 am #29879SkeeveParticipantHi Patrick,
Thanks for your help. Sure, this possibility gladly always exists, a simple script could solve it too. It would just be easier, if EmEditor could already save it in the proper required format. Or is there a plugin available for that? Otherwise I’ll go down one of the roads, discussed before.
Thanks!
July 3, 2024 at 5:08 am #29880SkeeveParticipantIn an ideal world I also could directly open, edit and save the utf32 file, without converting it back and forth but I think this would require native 32 bit text support which I guess is currently not available. Can anyone confirm this?
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.