This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > November 2004 > Display problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| My web page is in Chinese. When visitors type in the URL, it is displayed in
illegal characters. They have to go to "View" of their browser window, point
their mouse cursor to "Encoding" and select "Simplified Chinese" to display the
webpage in Chinese characters. I do not like this. How can rander my html code
or change properties so when visitors type in the URL of my webpage, it is
displayed in Chinese characters right away.
Thanks so much for your help.
| |
| Michael Fesser 2004-11-16, 6:40 pm |
| .oO(sucp)
>My web page is in Chinese. When visitors type in the URL, it is displayed in
>illegal characters. They have to go to "View" of their browser window, point
>their mouse cursor to "Encoding" and select "Simplified Chinese" to display the
>webpage in Chinese characters. I do not like this. How can rander my html code
>or change properties so when visitors type in the URL of my webpage, it is
>displayed in Chinese characters right away.
Can you post a URL?
Micha
| |
|
|
|
|
|
| I tried to change code to: <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
This time, the Chinese characters all turned out to be question marks. Any
other ideas for me to try?
Thanks again
| |
| Michael Fesser 2004-11-16, 6:47 pm |
| .oO(sucp)
>I tried to change code to: <meta http-equiv="Content-Type" content="text/html;
>charset=ISO-8859-1">
Forget the meta-stuff. What matters is the information in the response
header from the server. If the server says the document is ISO-8859-1
then the browser will display it like that.
You have to modify the server configuration so the server will deliver
the pages correctly with a chinese charset. On Apache servers this
should be pretty easy to do with a .htaccess file.
Have a look at this example:
A page with russian characters, delivered as ISO-8859-1:
http://andrew.triumf.ca/multilingua...es/russian.html
The same page, but now delivered as ISO-8859-5:
http://andrew.triumf.ca/multilingua...es/russian.asis
In the first case I only get strange characters, because ISO-8859-1
doesn't contain cyrillic chars. The second version looks correct. Down
on http://andrew.triumf.ca/multilingual/samples/ there are some more
interesting examples with different languages (Korean, Hebrew, Chinese,
Japanese, ...).
Actually I can't do further testing with chinese characters because my
system can't display them.
Micha
| |
|
| By server, do you mean the server that is with my internet service provider?
Maybe I need to contact my internet service provider since my web page space
comes with my DSL internet service. The more I think about this, the stupider I
feel as I even do not know what the problem is now. Thanks for your patience,
anyway.
| |
| Murray *TMM* 2004-11-16, 6:49 pm |
| Server=the server where the website is hosted.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"sucp" <webforumsuser@macromedia.com> wrote in message
news:cmtrtb$4ec$1@forums.macromedia.com...
> By server, do you mean the server that is with my internet service
> provider?
> Maybe I need to contact my internet service provider since my web page
> space
> comes with my DSL internet service. The more I think about this, the
> stupider I
> feel as I even do not know what the problem is now. Thanks for your
> patience,
> anyway.
>
| |
| Michael Fesser 2004-11-16, 6:49 pm |
| .oO(sucp)
>By server, do you mean the server that is with my internet service provider?
Yep. The server which is delivering the pages that look wrong in a
browser.
>Maybe I need to contact my internet service provider since my web page space
>comes with my DSL internet service. The more I think about this, the stupider I
>feel as I even do not know what the problem is now.
It's not that complicated. Whenever you request something from a server,
be it a webpage, an image, whatever, the returned data consists of two
parts.
There's the requested content on one hand and there's some information
about that content on the other, meta-data (technically spoken: the
response header, don't confuse it with the meta-elements in a html
document). This meta-data/header for example describes the type of the
content (whether it's plain text, html, image, other binary stuff etc.)
and contains informations about the used charset/encoding, so the
receiving user agent (browser) will know how to handle and decode the
incoming data.
The problem on your site is that the content is in Chinese, but the
charset-information says it's something else (ISO-8859-1, Latin-1).
Given these informations the browser decodes the documents using a wrong
charset.
What you have to do is to tell the server to send an appropriate charset
information, so the browser will be able to automatically decode the
documents correctly. Actually I don't know what would be appropriate for
Simplified Chinese. In my Opera browser I have GB2312, HZ-GB2312 and
GB18030 available in the encodings-menu. The first also appeared in the
meta-element on the page in question, so I think that should work.
Now to tell the server what you really want from it is not that hard.
Since it's an Apache webserver try if you're allowed to use .htaccess
files (watch the leading dot, it's important). Create such a file
(Windows doesn't like filenames starting with a dot, name the file
however you want and rename it after you uploaded it) with this line:
AddCharset GB2312 .html
and upload it to the server (to the root directory of your website). The
above statement maps all files with the extension .html to the given
GB2312 charset.
http://httpd.apache.org/docs/mod/mo...html#addcharset
If that doesn't work or you're not allowed to use .htaccess files ask
your host/ISP if they can help you.
Micha
| |
|
| What program do I use to create a .htaccess file?
I created a file in word with the line: AddCharset GB2312.html, upload the
file and changed the file name to .htaccess. Then my page says: server
configuration is wrong.
I talked with my ISP, he said that they do not support dreamweaver and
dreamweaver did not tell the server to auto select the language encoding, that
is why I am having the problem, which sounds unlogic to me ......he has quite
an attitude, I wanted to kick him....
Further assistance is greatly appreciated.
| |
|
| Hi,
I created a .htaccess file with a line "AddCharset 2312.html" in notepad.
After I uploaded the above .htaccess file to the server and then check my
website: http://www.iowatelecom.net/~dr_su_consult, the following message
showed up:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, webmaster@iowatelecom.net and inform
them of the time the error occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in the server error log.
I am wondering do you know what this means? Am I allowed to use .htaccess
files? Is there any other way to solve this? I feel this should not be a big
deal. But my host said html of foreign language website written by Dreamweaver
is not supported. Dreamweaver does not tell the server to autoselect simplified
chinese as encoding. I am still confused but I am not giving up before I solve
it. Any expert's help on this problem in question?
Thanks.
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|