473,473 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help needed with simple Java script

Hello everyone, from Croatia !

I am designing a site for a Serbian client, and the english page is ok, but
the serbian page needs to be cyrillic. It was no problem for Photoshop
design, but I inserted a little greeting in java (found free online), good
morning, good afternoon... This is part of the code:

hours = today.getHours();
if (hours<12) greeting = 'Good morning!';
if (hours<18 && hours>11) greeting = 'Good afternoon!';

For example:

????? ?????
????? ?????
????? ???

I would like those greetings to show on the page in cyrillic writing, font
name is ArialCYR to be exact. How do I tell Java to display cyrillic ???
I don't have experience with classes etc, so not sure
Thanks ! (if you wish to see, the site is radgost-scl.com)

Nela.

Jan 31 '07 #1
1 3195
nela wrote:
Hello everyone, from Croatia !

I am designing a site for a Serbian client, and the english page is ok, but
the serbian page needs to be cyrillic. It was no problem for Photoshop
design, but I inserted a little greeting in java (found free online), good
morning, good afternoon... This is part of the code:

hours = today.getHours();
if (hours<12) greeting = 'Good morning!';
if (hours<18 && hours>11) greeting = 'Good afternoon!';

For example:

????? ?????
????? ?????
????? ???

I would like those greetings to show on the page in cyrillic writing, font
name is ArialCYR to be exact. How do I tell Java to display cyrillic ???
I don't have experience with classes etc, so not sure
Thanks ! (if you wish to see, the site is radgost-scl.com)

Nela.
Looking at the source of your web page, you're using JavaScript, not
Java, so you should be using the comp.lang.javascript newsgroup (that's
where I set the followup-to field).

Anyways, if you just put the text in like this:

greeting = '¸æçè éêëìí îïðñòóôõö÷øùú Ûüýþÿ';

it should work. However, the server is currently sending the file as
Windows-1250, when it should be Windows-1251 or UTF-8 (or any other
encoding capable of supporting Cyrillic characters), so without changing
the file encoding, the text would become gibberish (????, e.g.). Please
don't ask me how to do that, because it is quite system-dependent.
Feb 28 '07 #2

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

Similar topics

3
by: Bengan | last post by:
Hi, I have made an java app and i want to do an install wizard for that. What do i need to do to make my java app work at another persons system that doesnt have anything with java installed. Is...
46
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") ...
8
by: Johnny Knoxville | last post by:
I've added a favicon to my site (http://lazyape.filetap.com/) which works fine if you add the site to favourites the normal way, but I have some JavaScript code on a couple of pages with a link,...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
2
by: Lisa Pearlson | last post by:
Hi, My php application (on Apache/Linux) needs to do the following: The PHP script receives a request from a client (binary), asking for certain records of data. My PHP script loops through...
10
by: Jeff Boes | last post by:
I'm hoping there's someone here with experience in building the Visual Explain tool from Red Hat. I downloaded it and the J2 SDK, but when I attempt to follow the build instructions, I get messages...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.