PDA

View Full Version : problem with characters...



jonybigude
05-14-2011, 11:25 AM
Hello everyone!

I hoppe i'm on the right place to place this question...

I'm using the menu that is on the following tutorial as a language selection menu:

http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

Everything works just great. The problem is that I need to use other charachers besides the english ones, such as and probably more. Once I type them, for example in the word "Espaol" or "Portugus", the result is a bunch of very weird charachters...

So, my question is: Is there any way to solve this situation? :confused:


Thank you so much in advance! :)

Joo Figueiredo

jonybigude
05-14-2011, 03:48 PM
Anyone?? Please?? I'm sure that this is a very simple issue, but I'm just a designer...

codeparrot
05-14-2011, 06:43 PM
Go here and scroll down to the bottom of the page. You'll see the HTML code for these special characters:

http://www.w3schools.com/tags/ref_entities.asp

djr33
05-14-2011, 10:27 PM
Bom dia!

The computer needs to know to interpret these characters in that way, rather than as another character encoding format. The default for your page does not match encoding them that way (when you cut and paste).
The best method would be to add a character encoding meta tag:
http://www.w3.org/International/O-charset

UTF8 is probably the best, compatible option. You will need to use one though that actually matches the input, but UTF8 is a good guess. Unicode is pretty standard.


Alternatively, using HTML entities as in the post above is a very easy alternative, but it can be annoying to change every character in that way. It depends on how much content you have.

molendijk
05-14-2011, 10:54 PM
I always use this (http://molendijk.freei.me/converters/convert_to_unicode.html) for my foreign characters..
===
Arie Molendijk.