in reply to Replacing none alpha/numeric characters in a Word document

I don't understand if you do or if you don't want these special characters. Anyway, they are in Microsoft's extension to ISO-Latin-1, known as "CODE PAGE 1252".

If you do want these characters, you can look up their codes at the character codes list on unicode.org's website, and simply insert them with Perl. (These extension characters are all in the range 0x80-0x9F.)

If you don't: you should realize that Word has a tendency to automatically replace simple ASCII quotes in documents with so-called "smart quotes", using a heuristic algorithm considering the neighboring characters to decide whether a left- or a right quote may need to be inserted. If you want plain ASCII, you have to fiurst turn this off.

HTH.

  • Comment on Re: Replacing none alpha/numeric characters in a Word document

Replies are listed 'Best First'.
Re^2: Replacing none alpha/numeric characters in a Word document
by merrymonk (Hermit) on Dec 17, 2008 at 14:00 UTC
    I am soory I was not clear!
    I DO want to use these special characters therefore I am now looking at the reference you gave me.
Re^2: Replacing none alpha/numeric characters in a Word document
by merrymonk (Hermit) on Dec 17, 2008 at 14:18 UTC
    I have now used your suggestion and looked in the reference.
    As I could not see a tick referenced I tried the code for 1/2 as one character.
    This is 0x00BD.
    using = 0x00BD for xx5 I got 189 in the modified Word document (the decimal value for hex BD).
    using = '0x00BD' for xx I got 0x00BD.
    I can see why this happened.
    Therefore what do I have to do to get the 1/2 as a single character?
    Also how do I get to characters in other 'fonts' such as Wingdings?