haboltn
asked on
Pasting Spanish Text into Dreamweaver - Special Characters
I am working on a website that has pages in both English and Spanish. I have all the Spanish translations in a Word document. When I try to copy and paste the text into Dreamweaver (either directly into the code or directly into the visual editor) the special characters do not come up automatically in the code view (like it would if I pasted a copyright symbol in).
For instance, the text looks like this in the code and visual editor view in Dreamweaver:
Los estadounidenses están viviendo más años que nunca, y muchos individuos mayores están llevando vidas activas, sanas y productivas.
But looks like this in the browser:
Los estadounidenses están viviendo más años que nunca, y muchos individuos mayores están llevando vidas activas, sanas y productivas.
It should be like this:
I paste están and in the visual editor it looks like están in the code view and están in the browser.
I tried copying the text to notepad first, but it made no difference.
How can I paste Spanish text into Dreamweaver from a Word document and get Dreamweaver to automatically code the special characters?
Many thanks,
-HB
For instance, the text looks like this in the code and visual editor view in Dreamweaver:
Los estadounidenses están viviendo más años que nunca, y muchos individuos mayores están llevando vidas activas, sanas y productivas.
But looks like this in the browser:
Los estadounidenses están viviendo más años que nunca, y muchos individuos mayores están llevando vidas activas, sanas y productivas.
It should be like this:
I paste están and in the visual editor it looks like están in the code view and están in the browser.
I tried copying the text to notepad first, but it made no difference.
How can I paste Spanish text into Dreamweaver from a Word document and get Dreamweaver to automatically code the special characters?
Many thanks,
-HB
ASKER
That didn't work for me.
But changing this meta tag did:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
But changing this meta tag did:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
That charset is the most widely used, so you will want to stick with that.
Yes, the character encoding becomes critical when dealing with special characters.
At the risk of sounding like a total geek...
iso-8859-1 is the character set for Latin (European) text, and covers all the symbols you'll ever need for European web site development. Specifying this charset forces the browser to display the fonts correctly and always choose a font type that contains all the characters.
If you ever need to expand your web site to cover more extensive languages (i.e. Chinese), then the next step up is the UTF-8 charset, which contains every imaginable character.
Hope that was somewhat useful...
I knew my stint in China would come in useful at some point in life...
iso-8859-1 is the character set for Latin (European) text, and covers all the symbols you'll ever need for European web site development. Specifying this charset forces the browser to display the fonts correctly and always choose a font type that contains all the characters.
If you ever need to expand your web site to cover more extensive languages (i.e. Chinese), then the next step up is the UTF-8 charset, which contains every imaginable character.
Hope that was somewhat useful...
I knew my stint in China would come in useful at some point in life...
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
>> next step up is the UTF-8 charset
There is a really fun IE 6 bug with UTF-8 and XHTML and scripts. If you have all three on a page, I've noticed that IE 6 will display a blank page.
There is a really fun IE 6 bug with UTF-8 and XHTML and scripts. If you have all three on a page, I've noticed that IE 6 will display a blank page.
Is it specific to that charset or just that IE6 doesn't like self closing tags on the script tag?
It appears to be a combination of all three as far as I can tell. I've had UTF-8 and XHTML co-exist peacefully, but as soon as I started adding javascript or PHP, IE 6 displayed a blank page.
It might just be the script tag that causesthis. I posted a question ages ago on EE because <script> tags wouldn't work on my XHTML pages (or more specifically, the javascript inside them).
I was told that all scripts _must_ have a closing tag, and not just be closed with <..../>
This did fix my problem.
I don't know where this is actually documented by the W3C as the official way to include scripts, but its one of those really annoying things that you'd never fix unless someone told you about. It's especially confusing as it differs from the approach of using other tags within the header.
I was told that all scripts _must_ have a closing tag, and not just be closed with <..../>
This did fix my problem.
I don't know where this is actually documented by the W3C as the official way to include scripts, but its one of those really annoying things that you'd never fix unless someone told you about. It's especially confusing as it differs from the approach of using other tags within the header.
Vee,
We're just chatting. Please PAQ and refund using #20024829
Jason
We're just chatting. Please PAQ and refund using #20024829
Jason
Closed, 125 points refunded.
Vee_Mod
Community Support Moderator
Vee_Mod
Community Support Moderator
Los estadounidenses están viviendo más años que nunca, y muchos individuos mayores están llevando vidas activas, sanas y productivas.
Pasting this sentence into Design View gets me this in Code View:
Los estadounidenses están viviendo más años que nunca, y muchos individuos mayores están llevando vidas activas, sanas y productivas.