00673: PmWiki changes a character with a [[http://en.wikipedia.org/wiki/Macron|macron]] to a character with a [[http://en.wikipedia.org/wiki/Circumflex|circumflex]] on save
- A browser or server (not PmWiki) changes a character with a macron to a character with a circumflex on save (see the rightmost column in the table below).
|Character||Unicode||ISO-8859-1||approximation HTML entity||chr|
|Capital letter A with macron||U+0100||AA||Â|
|Small letter a with macron||U+0101||aa||â|
|Capital letter E with macron||U+0112||EE||Ç|
|Small letter e with macron||U+0113||ee||ç|
|Capital letter I with macron||U+012A||II||Î|
|Small letter i with macron||U+012B||ii||î|
|Capital letter O with macron||U+014C||OO||Ô|
|Small letter o with macron||U+014D||oo||ô|
|Capital letter U with macron||U+016A||UU||Û|
|Small letter u with macron||U+016B||uu||û|
PmWiki doesn't do any such conversions on its own -- there must be some other component that is performing the conversion. I suspect its your browser that is actually changing the characters.
In particular, my browser (Firefox 1.5) is automatically converting "Ā" into
Ā prior to sending it to PmWiki.
One thing to note is that that macron characters are outside of the 0-255 codepoint range, so unless a site is using UTF-8 a browser might be very confused and simply try to map things onto ISO-8859-1 (Latin-1, PmWiki's default).
At any rate, I don't think this is a PmWiki bug but is instead a browser bug. What browser are you using?
I see, I mainly use IE 6.02, but I also test with Opera 8 and Firefox 1.5, all of which converted as you found above on PmWiki (but not my wikis).
Is it possible it a (Apache) server setting? eg would it help if the content-type was set to a character set?
After more testing it is related to the generation of the macron character, at home I use the Microsoft Mâori keyboard on XP (see language settings), at work it is a a program called Patuhi. Having said all that I have yet to determine how to stop it happening on my wikis, when I find out I'll tell ya.
It's possible that Apache is sending the wrong content-type or character set. I've seen instances where Apache likes to enforce utf-8 on character sets even when the application specifies a different one. Is there a url I could test so that I could see the headers your server is sending back? Perhaps that would provide a clue.
It is quite confusing. Even using the Microsoft Māori language keyboard (eg in this ūpdātē) while the character displays correctly in the text area before submission, it is wrong afterwards - when displayed.
Yes, please try http://ttc.org.nz/pmwiki/pmwiki.php/Test/Macron, unfortunately the site I am having most trouble with is an intranet.