Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
722 views
in Q2A Core by
If user posted question that include percent sign,
I can't post answer or comment.

I think that is problem with Korean->UTF-8 and url encoding.
How can I automatically change this ?
by
Hi... xguru;
 How do you fixed url encoding to korean?
Thank in advance;
mk
by
Hi. minnkyaw

I didn't changed url encoding. I'm just asking for browser auto conversion of Korean character.

1 Answer

+1 vote
by
 
Best answer
This is a bug in Q2A 1.0, not specifically related to Korean.

You can fix it by changing qa_self_html() in qa-index.php from this:

    {
        global $qa_rewritten, $qa_request;
       
        $params=$_GET;
        unset($params['qa-rewrite']);
       
        return qa_path_html($qa_request, $params, null, $qa_rewritten);
    }

... to this ...

    {
        global $qa_rewritten, $qa_request;
       
        $params=$_GET;
        unset($params['qa-rewrite']);
       
        $requestparts=explode('/', $qa_request);
        foreach ($requestparts as $index => $requestpart)
            $requestparts[$index]=urlencode($requestpart);
        $qa_request=implode('/', $requestparts);
       
        return qa_path_html($qa_request, $params, null, $qa_rewritten);
    }

Thanks for catching this bug! I'll release version 1.0.1 shortly with this fix (and any others that come up!)
...