Tapatalk

How are .prj and .pui files encoded?

How are .prj and .pui files encoded?

6
NewbieNewbie
6

    Dec 06, 2018#1

    Hi there,

    I would like to read the .prj files for a special tool, but the special characters (non-ASCII, or backslash) are encoded in a strange unknown way.

    For example: Backslash is saved as +AFw-

    So a saved path in a project looks like this: 

    Code: Select all

    [FilesU - Temp]
    0=Temp1
    1=C:+AFw-Users+AFw-Public+AFw-Documents+AFw-Test.txt
    Has anyone an idea on how to convert those sequences back to "normal" text, except testing each and every character to get the result?

    133
    Basic UserBasic User
    133

      Dec 06, 2018#2

      The file is written in Unicode (UTF-7) and you are reading it in ASCII. See this reference.

      6
      NewbieNewbie
      6

        Dec 06, 2018#3

        Oh... strange that UE doesn't open it's own file with the correct encoding then.

        I figured out with setting the Advanced->Code page to "65000 (UTF-7)", it shows the data properly.

        But easy to read it then with an external tool anyway, thanks for the hint!  :)