I have searched over and over again, but cannot get my problem solved. Any
insight would help greatly.
Currently, I have data in a SQL Server DB that has data in the windows-1251
charset.
I have the output working properly. My problem lies in the insertion of
data using an admin. When the form posts back, the form data is in UTF-8
encoding. While i can change the db to nvarchar and use UTF-8 and solve all
problems, my client wants me to use the 1251 charset. After poking around
the net, almost all russian sites use 1251 and not utf-8, so i understand
the concern.
I tried using the setEncoding of the form scope to 1251, but the results are
incorrect. It looks like it is converting the UTF to 1251 or something.
I have played with all the permutations of cfprocessingdirective cfcontent
etc. When i can get the CF to insert into the DB properly, the display is
screwed up. When i get the display working, there are UTF chars in the DB.
Another test i tried is by using the same source code for a CFM file and an
HTML file.
The html renders properly, but the CFM does not. if you view the source,
they are still exactly the same. Looking at the encoding of the page in IE,
the cfm version is set at UTF-8. When i switch to cyrillic in the IE
options, i get a completely different output than the HTML version. This is
fixed if i add the <cfcontent type="text/html"> If i add the charset
attribute, it doesn't work.
Now, the problem is that i cannot get the display, database insertion and
FORM encoding all working at the same time and using the same
charset(1251)....
TIA!
- j
james curran
technical director
nylon technology
<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
212-691-1134
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

