Skip navigation
Brian@wisl.com
Currently Being Moderated

Encoding Extended ASCII characters

Apr 27, 2011 6:57 AM

I am trying to convert printed text reports to PDF and am running into an issue with the extended ASCII characters used to display boxes. Character 191(┐) is an upper right corner, 192(└) is a lower left corner, 196(─) is a vertical line etc . They are part the IBM Code Page 437 and the PC-* Symbol set.

 

In the PDF document, we are setting /BaseFont /Courier . I have tried different /Encoding lines - /Encoding WinAnsiEncoding for example, which will change the above characters to the appropriate character for that encoding. Is there an /Encoding option for code page 437 or PC-8? Is there a better way to go about this?

 
Replies
  • Currently Being Moderated
    Apr 27, 2011 7:09 AM   in reply to Brian@wisl.com

    Brian,

     

    Given the extent to which Unicode is used today, and its broad support in OSes and applications, you should instead be encoding these line-drawing characters according to Unicode. Character 91 corresponds to U+2510, Character 192 to U+2514, and Character 196 to U+2500 (although you described it as a vertical line, it displays as a horizontal line). Unicode is definitely the better way to go about this, and does not have the ambiguity that is present in most legacy encodings.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 27, 2011 12:09 PM   in reply to Brian@wisl.com

    Brian,

     

    Although I would love to be able to provide to you the guidance that you need, the details are beyond my area of expertise. You are likely to get the guidance that you need by posing these questions in the appropriate Adobe Forum, specifically the Acrobat SDK one.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points