sitemap For Chinese/Japanese/Korean and a-z word . 2.6.2

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

sitemap For Chinese/Japanese/Korean and a-z word . 2.6.2

Post by UTAKA » Thu Feb 18, 2010 3:15 pm

sitemap For Chinese/Japanese/Korean and a-z word
#
##-- open ---------------------
#
/inc/Sitemap.php

#
#-- Find ----------------------
#

if (PMF_String::preg_match("/^[a-z0-9]/i", $letters)) {

#
#-- Replaced With -----------
#

if (PMF_String::preg_match("/^[一-龠]+|[ぁ-ん]+|[ァ-ヴー]+|[a-zA-Z0-9]+|[a-zA-Z0-9]/i", $letters)) {

#
### Save as UTF-8_format

It works by this.
However, Urlencode not complete was not able to be done this..
Thorsten. Help..
$letters,
to
urlencode($letters),
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sitemap For Chinese/Japanese/Korean and a-z word . 2.6.2

Post by Thorsten » Thu Feb 18, 2010 4:13 pm

Hi,

this fix produces a warning for me:
phpMyFAQ warning [2]: preg_match() [function.preg-match]: Compilation failed: range out of order in character class at offset 62 in Mbstring.php on line 194
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sitemap For Chinese/Japanese/Korean and a-z word . 2.6.2

Post by Thorsten » Thu Feb 18, 2010 4:23 pm

Hi,

okay, it works partly... I made a typo. I still working on that!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

Re: sitemap For Chinese/Japanese/Korean and a-z word . 2.6.2

Post by UTAKA » Thu Feb 18, 2010 4:28 pm

Thorsten
Thank you. :D
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------

Post Reply