Click to See Complete Forum and Search --> : dynamically change encoding


saintgregor
11-20-2003, 03:39 AM
here's a tricky one:

is it possible to dynamically change the encoding of a page from - let's say.. from western europe to greek. my problem is that i send off a form which will then be stored in a database. this database can't handle the #&number; stuff. so by checking a radio box which specifies the country the form should be sent off in the according encoding.
any idea? right now the visitors to this page have to specify the geographical region before they get to the form. my idea was more a universal form for all.

thx.saint

Khalid Ali
11-20-2003, 06:35 AM
I think you should be able to do that,just like any other attribute will be changed,

look into setAttribute() DOM function.

saintgregor
11-22-2003, 05:02 AM
i looked around - trying to figure out how the setAttribute() works - and got mainly confused.
anyone with a working example??

thx.gregor