Announcement

Collapse
No announcement yet.

Print ISO Characters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Print ISO Characters

    I'm simply trying to write ISO characters to a file using CHR$(x) where x is between 32 and 255. I've tried PRINT (sequential output) and PUT$ (binary files) but the data seems to be modified by PB before it is written,

    PUT$ #1,CHr$("AB",192,13,10) ' 4 characters

    PRODUCES THE HEX STRING

    41 42 EF BF BD 0A ' 5 characters?

    Is the there a code page setting required to simply be able to output all characters above ASCII 32? UTF-8 and ISO tags don't give me any hits neither in the Help file nor on the forums.

    I'm using the CC compiler version 5.01.0100.

  • #2
    I think you're mistaken, Joe. PB/CC does not "magically" transform 5 characters into six characters when written to disk with PUT$. Something else is going on in your code to cause this. That's why we always ask you to display a working program to demonstrate a problem. If you'll show a working example, someone can point out the cause. Thanks!

    Best regards,

    Bob Zale

    Comment


    • #3
      But surely
      CHr$("AB",192,13,10)
      = Chr$("AB") & Chr$(192) & Chr$(13) & Chr$(10)
      = Chr$("A") & Chr$("B") & Chr$(192) & Chr$(13) & Chr$(10)
      ie Five bytes ??
      Rgds, Dave

      Comment


      • #4
        Joe, do you mean to be doing PUT$ #1,Chr$(&hAB,192,13,10) => 4 characters?

        Comment

        Working...
        X