Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Umlaut / Javascript

2 views
Skip to first unread message

CliffMos

unread,
Jan 20, 2005, 11:25:12 AM1/20/05
to
Can anybody help me with this?. I have a JavaScript file (this is just a
snippet) that contains the following code? var st = '<br>?';
document.write(st); When I run the following CFM? <br>Ajs result <script
type='text/javascript'> <cfinclude template='Ajs.js'> </script> <br>Done The
result is? Ajs result ? Done As I would expect. However, when I run the
following CFM? <br>Ajs result <script src='Ajs.js'
type='text/javascript'></script> <br>Done The result is? Ajs result Done
I.E. the a umlaut is not written! This may seem trivial but this is only an
example snippet of the problem. In the system I?m supporting it?s quite a
problem. Because we are using the umlaut for the first time. Kind
Regards Cliff Mosdall

PaulH

unread,
Jan 21, 2005, 7:44:20 AM1/21/05
to
looks like you might have to make your js files unicode. you could simply use
notepad (save as & check the bottom of the file dialog for encoding options,
pick "utf-8"). or if you have huge amount of files have a look at
http://www.macromedia.com/devnet/mx/coldfusion/articles/globalize.html article.


CliffMos

unread,
Jan 24, 2005, 4:13:08 AM1/24/05
to
Wundervoll Paul, works a treat! - Thanks a lot.

Cliff

0 new messages