[pmwiki-devel] Funny characters
Petko Yotov
5ko at 5ko.fr
Tue Aug 18 12:34:46 CDT 2015
On 2015-08-15 09:24, Simon wrote:
> I have an intranet group of pages "Siân", on disk as
> \\SERVER\Home\public_html\pmwiki\wiki.d\Siân
>
> Recently I have noticed PmWiki (current version) displaying them as
> (see
> image)
> [image: Inline images 1]
>
> The markup shows as
> * [[Recipes/Si�ns ]]recipes
>
> The URL shows as http://home/pmwiki/pmwiki.php/Si%e2n/HomePage
>
> Because of the "%e2" character the URL doesn't access the correct
> files,
> and the link [[Siân/]] shows up as an undefined group.
This is a misconfiguration with character encoding.
Was the server operating system, filesystem or server upgraded recently,
or was the wiki migrated to a different server, or was the skin
modified?
When you edit the page, do you see the correct "â" character in
[[Siân/]], or you see a question mark?
The correct UTF-8 url-encoding of â is %c3%a2, when you follow a link
like
http://home/pmwiki/pmwiki.php/Si%c3%a2n/HomePage
is the Siân group opened correctly?
If yes, I would assume your filesystem character encoding was modified,
and your wiki might re-work fine by simply enabling UTF-8, see
docs/sample-config.php
> Any ideas. You can see a similar example here
> http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Resources/Espa%f1ol
Here I'm not sure why but browsers seem to display the page in UTF-8
while it is in cp1252.
Try adding this to config.php:
$HTTPHeaders['cp1252'] = 'Content-type: text/html;
charset=windows-1252';
$HTMLHeaderFmt['cp1252'] =
"<meta http-equiv='Content-Type' content='text/html;
charset=windows-1252'/>";
Petko
--
Change log : http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes : http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade : http://www.pmwiki.org/wiki/PmWiki/Upgrades
If this message helped you and saved you time, feel free to make
a small contribution: ♥ http://5ko.fr/donate-ml (mailing list).
More information about the pmwiki-devel
mailing list