Accented Characters

My page in Portuguese does not show the accented characters correctly (acute accent, grave accent, circumflex accent, til, c with cedilla) although I only use common fonts.
They all were replaced by a “question mark” thing.
How can I solve this problem ???
https://jogos-utilitarios-portugues.000webhostapp.com/

Best Regards,
Sasori

Hi put this piece of code at very top of your index file and wherever this errors are showing.

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

Reply with results

Eek! :hushed:

No, you want to recommend HTML5 standards mode:

<!DOCTYPE html>

That’s it. I liked XHTML, but it is dead now. If you view-source in Firefox, and see the OP’s doctype highlighted in red, it even tells you exactly what the doctype should be.

1 Like

You’re using an old XHTML doctype. Switch it to the new standard-based HTML5, and it should be fine:

<DOCTYPE html>

If you use Firefox, try viewing the source - you will see that your doctype is presently rendered in red (a warning that is wrong). The hover-text will show you the correct version (i.e. the HTML5 version).

1 Like

I changed the template completely and still the accented characters do not work. My doctype is no longer rendered in red in firefox browser … I dont know what is going on. It would be nice if someone helps me to fix this! The same html page works fine offline as you can see in the follwing print screens… Thanks!


Put this piece of code just after head tag

<meta charset="utf-8" />
1 Like

Thank you for your suggestion but I already had done that because someone suggested it to me. It does not work for some reason… its driving me crazy!
You can check it out in the same link above if you want to view the page source code.
Im thinking, as a last resource, on replacing all the accented characters in all the pages by its html code like “é” (e acute) by “&#233”…

Hey can you try this code at top of each page
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

1 Like

I just change the index page… the code does not work!

Okay so checkout this tutorial and it will work

1 Like

It works now!
So simple… and so tricky at the same time.
It would take me a million years to get there by myself…
Thank you so much. You are the best.

Glad to hear that. :slight_smile:
Do post again anytime :wink: