Re: Replacing unicode characters

From: Bart Lateur (bart.lateur_at_pandora.be)
Date: 02/15/04


Date: Sun, 15 Feb 2004 11:28:42 GMT

Tulan W. Hu wrote:

>I tried the above and got the following error message
>"\x{2019}" does not map to iso-8859-1 at utf.pl line 8, <$FILE> line 161.
>but the pre-5.8 code just removes the characters for me.

Don't use Latin-1 for the encoding, try cp1252 (AKA Windows) instead.
That turns out to be chr(0x92) ("right single quotation mark"). For the
whole list, see

<http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT>

If you don't want the Windows character set, I'd replace all "single
quotation marks" with apostrophes, ("'", chr(39)), and all "double
quotation marks" with quotes ('"', chr(34)).

-- 
	Bart.


Relevant Pages

  • Re: Word 2002 Problem
    ... the cursor moves on revealing the quotation ... > characters are fine, it's just the two characters on that key, ... > single quotation and full quotation marks. ... be turned off in Control Panel | Regional and Language Options | ...
    (microsoft.public.windowsxp.basics)
  • Re: Word 2002 Problem
    ... >> Pro. ... the cursor moves on revealing the quotation ... >> characters are fine, it's just the two characters on that key, ... >> single quotation and full quotation marks. ...
    (microsoft.public.windowsxp.basics)
  • Function arguments without quotation marks
    ... On cell A1: ... without quotation marks (but I think that it's because all non-numbers ... are characters and characters are strings, ...
    (microsoft.public.excel.programming)
  • Function arguments without quotation marks
    ... On cell A1: ... without quotation marks (but I think that it's because all non-numbers ... are characters and characters are strings, ...
    (microsoft.public.excel.programming)
  • Re: Unusual paragraph marks--cursor appears AFTER them, etc.
    ... Show/Hide and the characters are typically the same intensity as the other ... reopened the file and the paragraph marks behave normally. ... marks; I guess I've never had a doc that was corrupted in that way... ... I've never seen the 'ghost' para marks as you describe in more than 15 ...
    (microsoft.public.mac.office.word)