• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1091
  • Last Modified:

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
0
haboltn
Asked:
haboltn
  • 5
  • 3
  • 2
  • +2
1 Solution
 
fuzzboxerCommented:
If you are pasting the text into the Design View, Dreamweaver will automatically encode the special characters in the 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.

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.
0
 
haboltnAuthor Commented:
That didn't work for me.

But changing this meta tag did:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
0
 
fuzzboxerCommented:
That charset is the most widely used, so you will want to stick with that.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Jason C. LevineNo oneCommented:
Yes, the character encoding becomes critical when dealing with special characters.  
0
 
RouchieCommented:
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...
0
 
haboltnAuthor Commented:
changed it from

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="en-us">

to this:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="sp">

and I was able to copy-paste with the special characters remaining
0
 
Jason C. LevineNo oneCommented:
>> 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.
0
 
Jason C. LevineNo oneCommented:
http://www.webmasterworld.com/forum21/9129.htm

for a better/longer explanation.
0
 
fuzzboxerCommented:
Is it specific to that charset or just that IE6 doesn't like self closing tags on the script tag?
0
 
Jason C. LevineNo oneCommented:
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.
0
 
RouchieCommented:
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.
0
 
Jason C. LevineNo oneCommented:
Vee,

We're just chatting.  Please PAQ and refund using #20024829

Jason
0
 
Vee_ModCommented:
Closed, 125 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now