[pmwiki-users] name a page Gb or GB makes encoding chinese issue (fastcache recipe involved)

ABClf languefrancaise at gmail.com
Wed Jun 10 17:01:50 CDT 2015

Well, well, well, I guess it's bingo, Petko ; nice shot.
Writing :
AddCharset UTF-8 .Gb
at the beginning of .htaccess seems to fix that truly unexpected issue and
w3c i18n validator is ok now.

Thank you,

2015-06-10 20:31 GMT+02:00 Petko Yotov <5ko at 5ko.fr>:

> I suspect this is the Apache "content negociation" feature which thinks a
> file named *.gb is in the GB2312 encoding, so you may need to configure it.
> See/try the solutions provided here:
>   http://httpd.apache.org/docs/2.2/content-negotiation.html (check your
> Apache version)
>   http://stackoverflow.com/questions/913869/
>   http://htmlpurifier.org/docs/enduser-utf8.html
> Petko
> On 2015-06-10 18:17, ABClf wrote:
>> I'm struggling for hours with an annoying and strange encoding issue for a
>> few pages, at this time only for pages which are cached by fastcache
>> recipe
>> AND (that is the funny part) are named Gb or GB (my initials).
>> This is probably be a fastcache recipe limited issue, but there is
>> something very special here as it sounds like it does happen only for
>> pages
>> names Gb or GB, no matter the group they belong to (tested with Profils
>> and
>> Test).
>> For these pages, when user is anonym, fastcache quickly serves a cached
>> version of the page where special characters have become chinese ones.
>> For other pages, including GbTest, all is fine (if I'm not wrong).
>> After struggling and struggling, I found out that gb2312 and gbk (and
>> maybe
>> others) are chinese encoding and I guess I have found the culprit ; thus
>> it
>> might have to do with some function used by fastcache for generating its
>> cached page. Many of them use PmWiki mecanism.
>> What do you think ? is "gb" used for pagename the culprit ?
>> Any idea how to fix it, or do I have to change my name ? ;)
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150611/34734a79/attachment.html>

More information about the pmwiki-users mailing list