473,418 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Russian and javascript

I've built a site in English and an now translating it into Russian. My
html charset= utf-8 and my vbscript codepage is 65001. I'm using
DreamWeaver.

If there is a Javascript function in a page then I can cut and paste the
Russian in place of the English satisfactorily.

I have a page of common Javascript functions in an include file. When I cut
and paste Russian into this file, all I get is a string of ?????????????

Any help gratefully received.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 12 '06 #1
9 5323
ASM
Roger Withnell a écrit :
I've built a site in English and an now translating it into Russian. My
html charset= utf-8 and my vbscript codepage is 65001.
why won't you use utf-8 everywhere ?
I'm using DreamWeaver.
My poor ...
If there is a Javascript function in a page then I can cut and paste the
Russian in place of the English satisfactorily.

I have a page of common Javascript functions in an include file.
You mean an external file with javascript scripts
called with <script src="myFunctions.js" ...
?
When I cut
and paste Russian into this file, all I get is a string of ?????????????
Encode your JS page in utf-8 !

In My tests that works fine.

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Contact : http://stephane.moriaux.perso.wanadoo.fr/contact
Nov 12 '06 #2
ASM wrote:
Roger Withnell a écrit :
>I've built a site in English and an now translating it into Russian.
My html charset= utf-8 and my vbscript codepage is 65001.

why won't you use utf-8 everywhere ?
Codepage 65001 is UTF-8. Microsoft still insists that encodings have
numbers instead of names.

--
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
-- Charles Williams. "Taliessin through Logres: Prelude"
Nov 13 '06 #3
ASM
John W. Kennedy a écrit :
ASM wrote:
>Roger Withnell a écrit :
>>I've built a site in English and an now translating it into Russian.
My html charset= utf-8 and my vbscript codepage is 65001.

why won't you use utf-8 everywhere ?

Codepage 65001 is UTF-8. Microsoft still insists that encodings have
numbers instead of names.
I don't know what is codepage ... and don't use vbscript (Mac)
The OP use DW : what DW does with codepage by M$ numbers ?
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Nov 13 '06 #4
Roger Withnell wrote:
I've built a site in English and an now translating it into Russian. My
html charset= utf-8 and my vbscript codepage is 65001. I'm using
DreamWeaver.

If there is a Javascript function in a page then I can cut and paste the
Russian in place of the English satisfactorily.
Old style:

<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=koi8-r">
</head>
<body>
Russian characters go here
</body>
</html>

(The browser must have the koi8-r charset, which is not a problem
nowadays)

Windows style (not recommended):

<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1251">
</head>
<body>
Russian characters go here
</body>
</html>

New style:

<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
</head>
<body>
Russian characters go here
</body>
</html>

Happy-that-it-works style:

<html>
<body>
области
(Russian characters represented as their HTML numeric entities)
</body>
</html>
I have a page of common Javascript functions in an include file. When I cut
and paste Russian into this file, all I get is a string of ?????????????
I'ld suggest to open the external js file in Notepad or the like, then
add the Russian characters, and then save as UTF-8 in stead of ANSI
(Notepad's default).

Hope this helps,

--
Bart

Nov 13 '06 #5
Roger Withnell wrote:
I have a page of common Javascript functions in an include file. When I cut
and paste Russian into this file, all I get is a string of ?????????????
Make sure the script file is UTF-8 encoded and then use
<script type="text/javascript" src="file.js" charset="UTF-8"></script>
to include the script file in the HTML document.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 13 '06 #6
"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
Roger Withnell a écrit :
>I've built a site in English and an now translating it into Russian. My
html charset= utf-8 and my vbscript codepage is 65001.

why won't you use utf-8 everywhere ?
>I'm using DreamWeaver.

My poor ...
>If there is a Javascript function in a page then I can cut and paste the
Russian in place of the English satisfactorily.

I have a page of common Javascript functions in an include file.

You mean an external file with javascript scripts
called with <script src="myFunctions.js" ...
?
>When I cut and paste Russian into this file, all I get is a string of
?????????????

Encode your JS page in utf-8 !

In My tests that works fine.

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Contact : http://stephane.moriaux.perso.wanadoo.fr/contact
But how do I "Encode your JS page in utf-8"?

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 13 '06 #7
Roger Withnell wrote:
But how do I "Encode your JS page in utf-8"?
With a text editor that supports writing and saving text files that are
UTF-8 encoded.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 13 '06 #8
ASM
Roger Withnell a écrit :
"ASM" <st*********************@wanadoo.fr.invalidwrote in message
news:45***********************@news.orange.fr...
>Encode your JS page in utf-8 !

In My tests that works fine.
But how do I "Encode your JS page in utf-8"?
As told by ether else :
- open your JS file in your text editor (NotePad+ or BBEdit)
- in BBE set the file in utf-8 and save it
- in NotePad+ I think you have to save it as ...
under format : utf-8

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Nov 13 '06 #9
ASM said the following on 11/13/2006 11:58 AM:

- in NotePad+ I think you have to save it as ...
under format : utf-8
Close, it is in a menu that is labeled "Encoding".

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: M. Posseth | last post by:
hello ,, does someone know how i can acomplish the folowing task ,, i have a program with a HTML interface and i need to write Russian chars to the generated HTML files my database is...
5
by: Steven | last post by:
Hi all, I would like to create a site which shows text in English or in Russian (depending on the user's choice). Problem is that I can't save the pages in Unicode (Unicode can contain Russian...
2
by: Ross Noe via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Ross Noe I created an XML file using ASP that has Russian characters. Forsome reason ASP.Net doesn't read the Russian...
3
by: Roger Withnell | last post by:
I am using ASP, VBScript and MSSQL Server. I do not understand the purpose of the VBS Codepage setting - <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> nor the meta tag - <meta...
6
by: Victor | last post by:
Hi everybody, could anybody help me with the following problem : I need to set a cookie containing a Russian character string as the value, using the construct "document.cookie = ...". The...
5
by: Hank Moss | last post by:
I've been able to get the <qelement and the CSS quotes property to work well together in English, but not in Russian or mixed Russian and English. I probably don't have a firm enough grasp of the...
1
by: kersti | last post by:
We've just started to work on a Russian website. In the near future we expect to be running with a Japanese one as well. Currently our setup doesn't allow Russian characters - we need to do any...
1
by: sandeepindia | last post by:
I m using PHP Version 4.3.2 & Mysql version 3.23.58(No collation etc). My site is in shift JIS encoding. I've both japanese users & russian users. They have entered their member profile in their...
4
by: sree123456 | last post by:
Hello, I am having an issue, and looking for the solution. I am trying to save Russian language content (with some english) into a html file, by entering the content thru the .net c# web...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.