1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

@UTF8ENCODE?

Discussion in 'Support' started by vefatica, Sep 8, 2012.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,939
    Likes Received:
    30
    It seems to be changing 0x0D0A into 0x0D0D0A00.
    Code:
    v:\> type /x leontiev.txt | head /n5
    0000 0000 4c 65 6f 6e 74 69 65 66  20 77 6f 6e 20 74 68 65  Leontief won the
    0000 0010 20 4e 6f 62 65 6c 20 43  6f 6d 6d 69 74 74 65 65  Nobel Committee
    0000 0020 27 73 20 4e 6f 62 65 6c  20 4d 65 6d 6f 72 69 61  's Nobel Memoria
    0000 0030 6c 20 50 72 69 7a 65 20  69 6e 20 45 63 6f 6e 6f  l Prize in Econo
    0000 0040 6d 69 63 0d 0a 53 63 69  65 6e 63 65 73 20 69 6e  mic..Sciences in
     
    v:\> echo %@utf8encode[leontiev.txt,leontiev.utf8]
    0
     
    v:\> type /x leontiev.utf8 | head /n5
    0000 0000 4c 65 6f 6e 74 69 65 66  20 77 6f 6e 20 74 68 65  Leontief won the
    0000 0010 20 4e 6f 62 65 6c 20 43  6f 6d 6d 69 74 74 65 65  Nobel Committee
    0000 0020 27 73 20 4e 6f 62 65 6c  20 4d 65 6d 6f 72 69 61  's Nobel Memoria
    0000 0030 6c 20 50 72 69 7a 65 20  69 6e 20 45 63 6f 6e 6f  l Prize in Econo
    0000 0040 6d 69 63 0d 0d 0a 00 53  63 69 65 6e 63 65 73 20  mic....Sciences
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,301
    Likes Received:
    39
    It should be possible to do the same thing with TPIPE, though I don't know the syntax. Or perhaps you'd like to try this.
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,939
    Likes Received:
    30
    I have no need of UTF8. I was just re-reporting a bug I first reported 11 days ago.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    The bug is in the ipworks9.dll. I've passed it on to the developers.

    The file *encode / *decode functions have been superseded by TPIPE.
     

Share This Page