Reputation: 6389
I'm copying html from an old website to a new one. I'm getting a bunch of issues like this:
City�s
The apostrophe is obviously wrong.
I know when, copying text from Microsoft Word, you need to strip all the garbage by pasting everything into notepad then copying the stripped version to your site. Is there a way to do this so I can quickly reformat all the pages that need to be moved?
Thanks!
Upvotes: 2
Views: 105
Reputation: 105876
Did you change the encoding of your website? Maybe you had something like <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
and didn't include this <meta>
tag into your new site.
There are many encoding possibilities (ISO-8859-1, UTF-8, Windows-1250 and several others...) so you have to choose the correct one for your site. General it's a good decision to use UTF-8 without BOM, since almost every browser understands UTF-8 and many text editors (e.g. Notepad++, VIM) provide a command to convert ANSI or ISO-8859-1 documents into UTF-8.
Upvotes: 2