Re: non-western characters in links and JAVASCRIPT?
namemattersnot@ msn.com wrote:
^^^^^^^^^^^^^^
Well, it matters to me.
[color=blue]
> the right charset is already indicated in the head section.[/color]
^^^^^^^
What matters is if the same _encoding_ is declared with the `charset' label
of the `Content-Type' HTTP header because that takes precedence over any
<meta http-equiv="Content-Type" content="...; charset=...">
in the (X)HTML source code if the resource is served via HTTP.
See RFC1945 [1], 3.6.1, and RFC2616 [2], section 3.4.1. Use services like
<URL:http://web-sniffer.net/> and <URL:http://livehttpheaders .mozdev.org/>
to find out.
[color=blue]
> russian characters, therefore, are properly displayed.[/color]
Maybe. Maybe not.
[color=blue]
> why wouldn't links work? how do i encode them then?[/color]
You do not encode (visual hyper)links [3], you encode their target URIs as
described in RFC3986 [4], and, after that, as described in HTML 4.01 [5].
This has nothing to do with J(ava)Script/ECMAScript, though. [6]
PointedEars
___________
[1] <URL:http://www.rfc-editor.org/rfc/rfc1945.txt>
[2] <URL:http://www.rfc-editor.org/rfc/rfc2616.txt>
[3] <URL:http://www.rfc-editor.org/rfc/rfc3986.txt>
[4] <URL:http://www.w3.org/TR/html4/struct/links.html>
[5] <URL:http://www.w3.org/TR/html4/struct/links.html#h-12.2>
<URL:http://www.w3.org/TR/html4/types.html#h-6.4>
<URL:http://www.w3.org/TR/html4/appendix/notes.html#non-ascii-chars>
[6] <URL:http://validator.w3.or g/>
namemattersnot@ msn.com wrote:
^^^^^^^^^^^^^^
Well, it matters to me.
[color=blue]
> the right charset is already indicated in the head section.[/color]
^^^^^^^
What matters is if the same _encoding_ is declared with the `charset' label
of the `Content-Type' HTTP header because that takes precedence over any
<meta http-equiv="Content-Type" content="...; charset=...">
in the (X)HTML source code if the resource is served via HTTP.
See RFC1945 [1], 3.6.1, and RFC2616 [2], section 3.4.1. Use services like
<URL:http://web-sniffer.net/> and <URL:http://livehttpheaders .mozdev.org/>
to find out.
[color=blue]
> russian characters, therefore, are properly displayed.[/color]
Maybe. Maybe not.
[color=blue]
> why wouldn't links work? how do i encode them then?[/color]
You do not encode (visual hyper)links [3], you encode their target URIs as
described in RFC3986 [4], and, after that, as described in HTML 4.01 [5].
This has nothing to do with J(ava)Script/ECMAScript, though. [6]
PointedEars
___________
[1] <URL:http://www.rfc-editor.org/rfc/rfc1945.txt>
[2] <URL:http://www.rfc-editor.org/rfc/rfc2616.txt>
[3] <URL:http://www.rfc-editor.org/rfc/rfc3986.txt>
[4] <URL:http://www.w3.org/TR/html4/struct/links.html>
[5] <URL:http://www.w3.org/TR/html4/struct/links.html#h-12.2>
<URL:http://www.w3.org/TR/html4/types.html#h-6.4>
<URL:http://www.w3.org/TR/html4/appendix/notes.html#non-ascii-chars>
[6] <URL:http://validator.w3.or g/>
Comment