Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: convert to unicode

  1. #1
    Join Date
    Nov 2006
    Location
    North Carolina
    Posts
    69

    Question convert to unicode

    I have drawn a mental block on how to convert a file to unicode so that I can make changes to the file? Thanks in advance

  2. #2
    Join Date
    May 2010
    Location
    Pacific Time
    Posts
    985

    Default

    IIRC, the various files used by MSTS are Unicode to start with, as is most text in 32- or 64-bit Windows. It may look like plain text when viewed a text editor, but isn't. In XP (32-bit), there was a difference between Notepad and Wordpad, and you needed to use Wordpad to retain the Unicode character of the file when editing (or some other text editor that could understand Unicode); I don't think that's true any longer.

    According to Notepad++, MSTS text files, such as .wag files, are encoded as UCS-2 LE BOM. If you want all the gory details about Unicode, including demo converter code, check out unicode.org ( http://www.unicode.org/faq/utf_bom.html ).

    A little searching also finds:

    MS on Unicode vs. plain text: https://support.microsoft.com/en-us/kb/138813
    More from MS: https://msdn.microsoft.com/en-us/lib...vs.110%29.aspx
    Unicode in Java: http://tutorials.jenkov.com/java-int...n/unicode.html
    Converting Unicode to Ascii Text in DOS: http://www.dostips.com/?t=Snippets.UnicodeToAnsi

    Bottom line: use a Unicode-compliant editor (such as Notepad++, which is free and open source) on your files and don't worry about it.

  3. #3
    Join Date
    Nov 1999
    Location
    Doreen, Victoria, Australia.
    Posts
    6,917

    Default

    Hi Mike,

    Notepad and wordpad were different in win9x, as win9x was NOT a unicode OS.

    Windows NT, 2000, xp, vista, 7, 8, 10 are all unicode operating systems so notepad and wordpad will save as unicode.
    Cheers
    Derek

  4. #4

    Default

    IIRC, RouteRiter also has a utility that allows you to select an existing file, then convert same from ASCII to Unicode or Unicode to ASCII.

  5. #5

    Default

    Most recent text editors, including Windows', will save the format of a text file back to its original, unless a different one has been used with SAVE AS !

  6. #6
    Join Date
    Feb 2008
    Location
    Lexington, Ky
    Posts
    2,669

    Default

    Problem I have sometimes is when converting tracks from A1t to US3 or others, not all the world file are un-compressed, so notepad ++ misses some, when I try RR to un-compress them I mess them up, whats the best way to un-compress all the .w world files?
    Rick

    http:\\mononrr.com

    MONON-2


  7. #7
    Join Date
    Nov 1999
    Location
    .
    Posts
    3,246

    Default

    MSTS TK_Utils
    Name: tk_utils.zip
    Size: 373,961 Date: 01-05-2005 Downloads: 4,214
    MSTS TK_Utils - Archibald, Horace, Mapper & Zipper. Archibald is a tree view editor for MSTS files capable of reading/writing compressed shape, terrain and world files. Horace is a route converter when doing changes to the tsection.dat file like installing XTracks first time. Mapper is for doing maps and profiles of routes. Zipper last but not least is an easy to use compression utility that also handles folders. This update improves some file handling and adds a search function in Archibald. By Okrasa Ghia.
    Regards,

    Eric

  8. #8
    Join Date
    Feb 2008
    Location
    Lexington, Ky
    Posts
    2,669

    Default

    I searched for it in utilities in the library, no zipper, whats the link to it please.
    I nee a tool or procedure to uncompress all the .w world files.
    Rick

    http:\\mononrr.com

    MONON-2


  9. #9

    Default

    Hi Rick. Did you see Eric's post. Zipper is part of tk_utils.zip. Just did a search to be sure it was there. It is.

  10. #10

    Default

    Quote Originally Posted by Rick-MONON View Post
    I need a tool or procedure to uncompress all the .w world files.
    What is wrong with the Router Riter, which since its day-1 had no problems un-compressing and re-compressing MSTS files !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-->