rhgrdyn
Member
Posted 2 years ago #
Hello,
i'm posting with xml-rpc (php). But Turkish characters not correct. I'm using this function:
function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$category,$keywords='',$encoding='UTF-8')
i try:
iso-8859-9 in header (not resolved)
Regards.
What does the actual XML look like?
rhgrdyn
Member
Posted 2 years ago #
Hello Joseph,
Turkish Characters looking:
Ş -> Þ
ş -> þ
Ğ -> Ð
ğ -> ð
ı -> ý
İ -> Ý
ç,ö,ü these characters seem normal.
How can i fix the problem?
Thank you.
try utf-8 all over the place (including database). it has works with greek.
rhgrdyn
Member
Posted 2 years ago #
Hello Pagou,
Already utf-8. Normal posts does not have a problem in the Turkish characters. However, Xml-rpc posts are in the Turkish character problem. Ç Ö Ü no such problems with Turkish characters. However, a problem with character Ş ı İ Ğ p ş.
Regards.
What does the actual XML look like? I'm talking about the raw XML that is sent over HTTP to the XML-RPC service on your blog.
i have same problem too,
i use UTF-8 at my every file.
The title which i sent is looks like "Nasıl BaktıÄına BaÄlı" but it must be "Nasıl Baktığına Bağlı". i search for days but i couldn't find any way to solve this problem.
i solved the problem
http://thr.gen.tr/php/xmlrpc-turkce-karakter-sorunu.html
a comment from php.net
"It should be noted that encoding does not seem to encode anything, just specify what goes into the XML header.
We had problems with double-encoded UTF strings being saved to database when using this function, sending it of to a apache xml-rpc servlet and storing it in mysql database. It was solved by setting 'escaping' to just 'markup' and 'encoding' to 'UTF-8' (don't forget to set 'utf-8' in xmlrpc_decode too).
It seems that UTF-8 encoded strings gets escaped with their bytes as entities instead of their characters as entites."
antonio.duran
Member
Posted 1 year ago #
Thanks tyranid.
I started with this problem today and your post made me solve it in minutes.
That's timing! :)