Boris
|
| Posted: 05/23/2002, 5:01 AM |
|
How I can make applications in Russian without problems in database?
|
|
|
 |
Boris
|
| Posted: 05/23/2002, 5:15 AM |
|
Aplication on ASP and database Access 2000
|
|
|
 |
Nicole
|
| Posted: 05/23/2002, 5:16 AM |
|
Boris,
- solution for CC.
select site Russian translation in menu Tools->Options->Site Translations. In this case all site html pages should get Russian charset=<NATIONAL charset>
Please check it for generated site.
If it won’t help you can try other NATIONAL encoding. To apply it create second NATIONAL translation file in ../CodeCharge/Translation folder. Just copy existing Russian.xml and give it other name. Then open it and replace encoding=" NATIONAL charset" with encoding=" other NATIONAL charset". Select this translation for site and regenerate it.
Charset options are available at: http://msdn.microsoft.com/library/default.asp?url=/work...nce/charset.asp
If you use ASP try to play around turning on and off 'Use Custom HTML Encoding' flag on Site Properties/Database tab.
And you can add national LCID to each page using following code in Open Any Page event under Site Modules section:
Session.LCID= <value>
Links to LCID references: http://msdn.microsoft.com/library/default.asp?url=/libr..._code_table.asp
http://msdn.microsoft.com/library/default.asp?url=/libr...tl/nls_238z.asp
- solution for CCS
for now you should rename all captions manually as now CCS doesn't include national site translation. Change page encoding to national one. Open <BODY> properties dialog (to do it right click on the page in design mode and select '<BODY> Properties') and select Encoding on General tab.
Apply LCID if necessary.
|
|
|
 |
Boris
|
| Posted: 05/23/2002, 5:40 AM |
|
Thanks, but I ask about concrete application on Asp - Classifieds.
|
|
|
 |
Boris
|
| Posted: 05/23/2002, 6:34 AM |
|
Help Please!!
|
|
|
 |
Nicole
|
| Posted: 05/23/2002, 6:55 AM |
|
Boris,
have you tried solution proposed above? It is the same for all applications.
|
|
|
 |
Boris
|
| Posted: 05/23/2002, 7:00 AM |
|
I do not know where must to do these changes
|
|
|
 |
Boris
|
| Posted: 05/23/2002, 7:11 AM |
|
Problem with entering text in Russian in the database Access 2000 from ASP pages
|
|
|
 |
Boris
|
| Posted: 05/23/2002, 10:29 AM |
|
Problem with entering text in Russian from ASP pages to database Access 2000
|
|
|
 |
Nicole
|
| Posted: 05/24/2002, 12:46 AM |
|
Boris,
please re-read my first response and follow the instructions.
I've described in details what you should change and where.
Have you select Russian translation for site?
Have you checked each page to contain windows-1252 encoding?
Have you played with 'Use Custom HTML Encoding Flag'?
The solution proposed above is common for any national language.
|
|
|
 |
Boris
|
| Posted: 05/24/2002, 2:08 AM |
|
I have downloaded only one application, instead of all site in CodeCharge form. And consequently I do not understand where it is necessary to make the offered changes.Fhese options in application are absent
|
|
|
 |
Nicole
|
| Posted: 05/24/2002, 3:20 AM |
|
Boris,
1.please change charset=ISO-8859-1 to charset=windows-1251 (or any other encoding that could be used for Russian) in each .html file. In case you’ve downloaded templateless version edit .asp files.
2.in common.asp please check ToHTML function to be:
function ToHTML(strValue)
if IsNull(strValue) then
ToHTML = ""
else
ToHTML = Server.HTMLEncode(strValue)
end if
end function
It is equivalent to ‘Use Custom HTML Encoding’ flag selected.
You can also try following variant of ToHTML:
function ToHTML(strValue)
if IsNull(strValue) then
ToHTML = ""
else
ToHTML = replace(replace(replace(replace(replace(strValue, "&", "&"), "<", "<"), ">", ">"), """", """), "", "")
end if
end function
It is equivalent to ‘Use Custom HTML Encoding’ flag unchecked.
3.Session.LCID= value
Is to be added to .asp file after sTemplateFileName variable declaration.
|
|
|
 |
Boris
|
| Posted: 05/24/2002, 4:42 AM |
|
Thank You Nicole
|
|
|
 |