Reply
charset=windows-1251
Old 12-11-2007, 01:12 PM charset=windows-1251
Banned

Posts: 2,903
Location: Canada
I have 2 programs, one PHP mailForm and another CGI guestBook.

Site that I’m building will be used in Russia, so I want to add charset=windows-1251
to scripts somehow and hopefully to have them work.

Any ideas? Please




fastreplies

Last edited by fastreplies : 12-11-2007 at 01:54 PM.
fastreplies is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-11-2007, 04:08 PM Re: charset=windows-1251
tripy's Avatar
Fetchez la vache!

Posts: 2,057
Name: Thierry
Location: In the void
If I where you, I'd go UTF-8 directly...
It's designed from the ground to be used on case like that.

But apart from that minor sidenote, I think a simple declaration, specifying the charset should be enough to trigger the browser in the right mode.
HTML Code:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 12-11-2007, 04:36 PM Re: charset=windows-1251
Banned

Posts: 2,903
Location: Canada
I am using
Quote:
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
and it's working fine in body but not in script
take a look



fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 12-11-2007, 05:26 PM Re: charset=windows-1251
Novice Talker

Posts: 14
Name: Dmitri
I have a gold rule, always use utf-8! It saves a lot time and nerves too
Code:
			 				<meta http-equiv="content-type" content="text/html; charset=windows-1251">
This won't work if the program on the server side sends http-header with other encoding. I think you should remake server-side programs.
Dknight is offline
Reply With Quote
View Public Profile
 
Old 12-11-2007, 05:52 PM Re: charset=windows-1251
Banned

Posts: 2,903
Location: Canada
I tried to use utf-8 and everything I could come up with but I still have
the same problem. As you can see I have no problems with body

Dmitri, if you are using Russian KB, can you leave message in GB?




fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 12-11-2007, 08:36 PM Re: charset=windows-1251
tripy's Avatar
Fetchez la vache!

Posts: 2,057
Name: Thierry
Location: In the void
Well, what should I see that is not working with the CGI ??

On second thought, I'm on linux, and it seems to always handle mixed charset a whole lot better than windows....
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 12-11-2007, 08:53 PM Re: charset=windows-1251
Banned

Posts: 2,903
Location: Canada
If you use East Europian chars in form you'll see them looking like вокал
whereas it shoud look like first name after -

I hope this help



fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Old 12-17-2007, 03:46 AM Re: charset=windows-1251
Banned

Posts: 2,903
Location: Canada
Ok, I made guestbook speak Russian but I still can't
persuade mailForm start to communicate in Russian language

Is there Russians in the House?


fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to charset=windows-1251
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15037 seconds with 12 queries