Re: Japanese encoding




<cz4527@xxxxxxxxxxx> wrote:
I use Notepad and save the file in html, upload the file, go to
brinkster.com(my web hosting company's website), log into my account,
edit my file using the editor which is on their website.

Because it has been written, or more accurately saved, in Unicode.
That makes sense.

I added <meta http-equiv="Content-Type" content="text/html;
charset=euc-jp"> between <head> </head> but that didn't help. Is
"charset=euc-jp" supposed to ignore the fact that my web pages have
been saved in Unicode?

The character encoding of your html file, and the character set you
specify in the <meta http-equiv=...> line must agree. Since your file
is already in utf-8 encoding you should use a <meta http-equiv=...>
line like:

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

If you really want euc-jp encoding you have to change the encoding of
your html file from utf-8 to euc-jp. Doing that is more than just adding
the "<meta http-equiv" line; when you change the file's encoding you are
changing the values of the bytes in your html file.

To change it, you will need to save it as euc-jp, or use a program to
convert it from utf-8 to euc-jp. Whether you can save it as euc-jp
depends on the editor you use to create/edit it.
If you can't save it as euc-jp, then you will have to convert it from
utf-8 to euc-jp by running some program.
If your html file exists only on your ISP's site, then you will need to
find out if they have a program that will convert it to euc-jp. If not,
you will have to download it to your computer, convert it there, and
upload it.

Off the top of my head, I don't know how to change a files's encoding
from utf-8 to euc-jp using only Windows/Office tools. There are probably
some Windows programs available that will change a files encoding, but
I don't know what or where they are. The way I do it is to use the iconv
program in Cygwin (www.cygwin.com) but downloading and installing
Cygwin is a lot of work just to use iconv (especially if you don't already
know Unix.)

All in all, the easiest solution is to just leave your file as utf-8 and change
the <meta http-equiv=..." line to utf-8.
.



Relevant Pages

  • Re: Japanese encoding
    ... The character encoding of your html file, ... your html file from utf-8 to euc-jp. ...
    (sci.lang.japan)
  • Re: Test of Unicode APL characters with Mozilla
    ... the recommendation that you switch to euc-jp is perfectly barmy ... where possible) -- if pine can handle ... UTF-8 on the incoming, surely it could do the deed on the outgoing ...
    (comp.lang.apl)
  • Re: subjective feelings about actions?
    ... >right now) It seems curiously unwilling to render a backlash when the ... >encoding is euc-jp. ... >other encodings and it showed up- with the same font settings as well. ...
    (sci.lang.japan)
  • Re: Pronunciation guidelines?
    ... > Bart Mathias wrote: ... > Try adding EUC-JP to your options. ... > you a copy in a more common encoding. ...
    (sci.lang.japan)
  • Re: Most used codification for emails.
    ... Paul Blay wrote: ... > in the headers but was actually something else. ... > in EUC-JP it looked like this... ... > correctly in some other encoding. ...
    (sci.lang.japan)