Support » How-To and Troubleshooting » Xml-rpc Turkish character problem

Xml-rpc Turkish character problem

  • 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)


Viewing 8 replies - 1 through 8 (of 8 total)
  • What does the actual XML look like?

    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.

    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 ş.


    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

    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.”

    Thanks tyranid.
    I started with this problem today and your post made me solve it in minutes.
    That’s timing! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Xml-rpc Turkish character problem’ is closed to new replies.
Skip to toolbar