Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Question with percent sign " % " character has problem.

+2 votes
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 ?
asked Apr 12, 2010 in Q2A Core by xguru
Hi... xguru;
 How do you fixed url encoding to korean?
Thank in advance;
mk
Hi. minnkyaw

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

1 Answer

+1 vote
 
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!)
answered Apr 13, 2010 by gidgreen