XML problem...

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
bigowner
Regular
Posts: 21
Joined: Wed Feb 08, 2006 1:49 am
Location: Türkiye
Contact:

XML problem...

Post by bigowner »

when i opened a RSS feed near a category
it gave an erro like this

Code: Select all

<b>Warning</b>:  mb_convert_encoding(): Illegal character encoding specified in <b>/home/imacin/domains/bo...
my site is : http://www.boshver.com

thanx
bigowner
Regular
Posts: 21
Joined: Wed Feb 08, 2006 1:49 am
Location: Türkiye
Contact:

Post by bigowner »

judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Serendipity is trying to encode your language (which is not currently set to UTF-8 encoding) to UTF-8 for your browser. It's using the mb_convert_encoding() function because your server doesn't support iconv.

The charset of your blog is not recognized by mb_convert_encoding(). It's expecting something like "JIS", "EUC-JP", "sjis-win", or the like.

What is your Serendipity's charset?
Judebert
---
Website | Wishlist | PayPal
bigowner
Regular
Posts: 21
Joined: Wed Feb 08, 2006 1:49 am
Location: Türkiye
Contact:

Post by bigowner »

i am from Turkey and my charset is windows-1254
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Serendipity has no turkish language distributed. You'll need to use a charset as LANG_CHARSET constant inside your language file that is supported by mb_convert_encoding.

I suggest you to use UTF-8.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bigowner
Regular
Posts: 21
Joined: Wed Feb 08, 2006 1:49 am
Location: Türkiye
Contact:

Post by bigowner »

but UTF-8 is so many problem with turkish... :(

dont we solve this probkem?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Why should there be a problem? UTF-8 should contain all turkish characters.

You can ask the PHP developers if they plan to add windows-1254 support to PHP in the future, then you wouldn't need UTF-8. But I guess that is not an option.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bigowner
Regular
Posts: 21
Joined: Wed Feb 08, 2006 1:49 am
Location: Türkiye
Contact:

Post by bigowner »

when i choose UTF-8 charset it gices so many error. it doesnt support some of Turkish charecters...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What errors do you get?

UTF-8 does support all turkish characters, I'm sure. Of course when you change to UTF-8 charset while already having some win-1254 characters, those will break. So you would either need to convert your existing entries to UTF-8 first, or you ignore the problems with old entries. All new entries should show up fine.

I'm sorry, but I can only suggest you to use UTF-8; without it, you won't be able to solve the XML problems.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply