[thelist] character encoding & validation

Jim Dabell jim-lists.evolt.org at jimdabell.com
Fri Jul 26 13:05:09 CDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Friday 26 July 2002 5:38 am, Duncan O'Neill wrote:
> Hi all,
>
> I have a series of pages which transform XML
> server-side with XSLT (using ASP), and am having
> a problem getting them to validate.
[snip]
> Being Brinkster, I have no access to server settings.
> Having said that, is there anything I can do to
> tell the server which encoding to use?

Assuming it's apache, and it's configured to allow this, put an .htaccess
file in the directory with the following contents:

AddDefaultCharset utf-16


> I've done a
> response.write to write in the DTD, but can't /
> don't know how to write in the character encoding
> because everything, from <html> to </html>, is
> done by the server. It's not *vital* that the
> pages (be) validate(able), but I'd prefer that
> they did.

response.write?  Are you using asp?  If so, try:

<%
response.charset="utf-16"
%>

- --
Jim


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD4DBQE9QXOe3tJNldoQhi8RAse5AJ0X1U7SSxHONf2EAdA/FnpiaIV/uACWIE8O
/FNpZxvX5WkLKSdI+kRJOA==
=xDB0
-----END PGP SIGNATURE-----




More information about the thelist mailing list