Article View: comp.lang.javascript
Article #11Override codepage
From: B�rge
Date: Mon, 22 Jul 2002 10:55
Date: Mon, 22 Jul 2002 10:55
17 lines
1647 bytes
1647 bytes
Hi,
i am using nation specific characters in a javascript function that
uses document.write, i.e
document.write('nation specific characters ���')
This works well locally, but not when deployed on the server. I can
change the codepage on the development server, and i would work, but i
can't do this on the production server, where UTF-8 is used.
Is there somehow this can be done programmatic?
I have tried to use
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
on the page that included the .js file, but it didn't help.
Any idea?
Technical Details
Message-ID:
<3d3be30c.20591889@news.tele1europe.no>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news.tele.dk!small.news.tele.dk!213.131.157.171!wineasy!newsfeed1.wineasy.se!news.sto.telegate.se!news.wineasy.se!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10bacc,b5c182e4f74f1f3b,start X-Google-Attributes: gid10bacc,public X-Google-Thread: 100e17,b5c182e4f74f1f3b,start X-Google-Attributes: gid100e17,public X-Google-Thread: fb3cb,b5c182e4f74f1f3b,start X-Google-Attributes: gidfb3cb,public X-Google-ArrivalTime: 2002-07-22 03:56:07 PST From: borge.lotre@bekk.no (B�rge) Newsgroups: comp.lang.javascript,comp.lang.java.javascript,alive.internet.lang.javascript Subject: Override codepage Message-ID: <3d3be30c.20591889@news.tele1europe.no> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 80.239.13.98 X-Original-NNTP-Posting-Host: 80.239.13.98 Date: 22 Jul 2002 11:55:53 +0100 X-Trace: news.wineasy.se 1027335353 80.239.13.98 (22 Jul 2002 11:55:53 +0100) Lines: 17 X-Complaints-To: abuse@songnetworks.se Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news.tele.dk!small.news.tele.dk!213.131.157.171!wineasy!newsfeed1.wineasy.se!news.sto.telegate.se!news.wineasy.se!not-for-mail