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

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

    Thread Starter rhgrdyn

    (@rhgrdyn)

    Hello Joseph,
    Turkish Characters looking:

    ? -> T
    ? -> t
    ? -> D
    ? -> e
    ? -> y
    ? -> Y

    ?,?,ü 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.

    Thread Starter rhgrdyn

    (@rhgrdyn)

    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
    https://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.”

    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.