Home > Archive > Java Help > January 2007 > Cyrillic font problem!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Cyrillic font problem!
|
|
|
| Hello everyone, for 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 php, 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!';
I would like those greetings to show on the page in cyrillic writing, font
name is ArialCYR to be exact. How do I tell php to display cyrillic ???
Thanks ! (if you wish to see, the site is radgost-scl.com)
Nela
| |
|
| Sorry, I meant HELLO FROM CROATIA :-)
and it is java not php...... so, the question is - how do I tell java to
display a certain font ?
Nela
| |
| Stefan Z Camilleri 2007-01-27, 7:08 pm |
| On Sat, 27 Jan 2007 16:10:12 +0100, nela <nela.soldatov-jones@zg.t-com.h=
r> =
wrote:
> Hello everyone, for 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 php, good morning, good
> afternoon... This is part of the code:
>
> hours =3D today.getHours();
> if (hours<12) greeting =3D 'Good morning!';
> if (hours<18 && hours>11) greeting =3D 'Good afternoon!';
>
> I would like those greetings to show on the page in cyrillic writing, =
=
> font
> name is ArialCYR to be exact. How do I tell php to display cyrillic ??=
?
>
> Thanks ! (if you wish to see, the site is radgost-scl.com)
>
> Nela
>
>
Hi Nela
Firstly I'd like to point out that this is a Java forum and not a PHP =
forum.
Likewise, PHP supports unicode, so all you need to do is really map the =
=
character codes.
Here, there is a php class that will do this for you automatically if yo=
u =
want to save yourself the hassle :)
http://www.phpclasses.org/browse/package/2641.html
-- =
- Stefan Z Camilleri
- www.szc001.com
|
|
|
|
|