Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29877
    Skeeve
    Participant

    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
    Marcus

    #29878
    Patrick C
    Participant

    I 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#-encoding

    #29879
    Skeeve
    Participant

    Hi 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!

    #29880
    Skeeve
    Participant

    In 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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.