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

How to solve problem with url acentuation?

0 votes
I have a Q2A in portuguese but im having problems with urls. Example:
Here is the question:
Quando o iPad foi lançado oficialmente?
Here is the url:
http://localhost/5/quando-o-ipad-foi-lan%EF%BF%BDado-oficialmente

How can I fix that?
asked Apr 14, 2010 in Q2A Core by anonymous

2 Answers

0 votes
answered Apr 15, 2010 by minnkyaw
thanks but it still did not resolved my issue! Still same result
Question this:
Relações extraconjugais é um caso sério
Url this:
http://localhost/6/rela%E3%A7%E3%B5es-extraconjugais-%E3%A9-um-caso-s%E3%A9rio
0 votes
As far as I can see, that URL is appropriate for the question text. It will appear in most modern web browsers without the % symbols, but rather as the accented Portugese characters. Is the page not being displayed for the URL?
answered Apr 15, 2010 by gidgreen
That looks like it will work - you could just add that function to qa-base.php then insert this line at the start of qa_q_request():

$title=make_friendly_URL($title);

But: make sure you are editing qa-base.php with UTF-8 text encoding in your text editor, otherwise the character substitutions will be stored wrongly in the PHP file.
That is it!!! it fixed!!! Thanks for your support!