PDA

View Full Version : Multilanguages on the same page


esb01
04-29-2004, 11:17 PM
Hi,

Can you tell me anybody how to write a web page with a text in a few different languages? Actually I can do it but it's required to be saved as Unicode, then it can be seen properly only if IE encoding switched to Unicode UTF-8.

In other words can a web page request to switch IE encoding to Unicode?

Thanks

oracleguy
04-30-2004, 12:35 AM
Although I don't have much expereience in creating multi-lingual pages, one option would be to make the text into images. While I'm not a big fan of doing that normally, it might be your only option.

esb01
04-30-2004, 12:45 AM
Thanks,

I have thought of that.

But what if a text will be changed often?

Another question is how to send a single email in several languages from the code (if it's possible at all)? There is no problem to generate it in Unicode but the Outlook displays a gibberish and even switching a View to UTF-8 doesn't help.

Roy Sinclair
04-30-2004, 03:31 PM
There's a property you should be able to set on html elements which specifies the language of the text within that element http://www.w3.org/TR/html4/struct/dirlang.html.

The internationalization RFC: http://www.ietf.org/rfc/rfc2070.txt

esb01
04-30-2004, 03:41 PM
Thanks a lot Roy,

I also figured out easier way - it is possible to prepare a multilanguage text let's say in the Word doc format and then upload it into FrontPage. FrontPage does all encoding/decoding automatically. The page is seen properly but the code is not readable. It shows the actual codes and looks like -
<font style="...">
Ваш вклад
etc.

But I still have a problem with an email. How to generate a multilanguage text in the VB code and then send a message. I guess that assigning those codes to a variable or to MailMessage.Body property won't do any good.

Any suggestions here?

esb01
04-30-2004, 04:05 PM
Oops, sorry

I meant it ilooks like

<font style="...">
#1042;#1072;#1096;#1074;#1082;#1083;#1072;#1076;

with an ampresand in front of each symbol, of course