[Mono-devel-list] mono and cyrillic symbols
Slava Petrenko
slava at z.org.ua
Fri Jul 15 19:13:34 EDT 2005
Alberto Avila wrote:
> You are welcome, if you dont want to put that in every asp.net page
> you could use the next configuration in web.config
>
> <configuration>
> <system.web>
> <compilation>
> <compilers>
> <compiler language="C#;Csharp"
> extension=".cs"
> type="Microsoft.CSharp.CSharpCodeProvider,System"
> compilerOptions="/codepage:utf8" />
> </compilers>
> </compilation>
> <globalization requestEncoding="utf-8"
> responseEncoding="utf-8"
> fileEncoding="utf-8"/>
> </system.web>
> </configuration>
>
well, aspx pages look correct now, except strings extracted from mysql
database. all tables and varchar fields are utf8 encoded,
and phpMyAdmin shows all records correctly with utf8 encoding, while my
app still shows all database string in latin1 encoding.
what option can correct that?
> Greets
>
> On 7/15/05, Slava Petrenko <slava at z.org.ua> wrote:
>
>> Alberto Avila wrote:
>>
>>> Did you tried with <%@Page language="C#" compilerOptions="/codepage:utf8" %>
>>>
>>> That should solve your problem
>>>
>>>
>> thanx, it helps too
>>
>>> Greets
>>>
>>> On 7/14/05, Slava Petrenko <slava at z.org.ua> wrote:
>>>
>>>
>>>> Anton Andreev wrote:
>>>>
>>>>
>>>>> I am aslo intrested in your topic. Save the source as unicode and
>>>>> recompile, try configurating the console.
>>>>>
>>>>>
>>>>>
>>>> console and source is already utf8 encoded, i use suse 9.3
>>>> by adding -codepage:utf8 command line argument to mcs i've already
>>>> solved the problem,
>>>> but i'm searching how to fix encoding on aspx pages for asp.net site,
>>>> because pages don't get
>>>> compiled and i have no any idea how to solve encoding errors :-(
>>>>
>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I've got simple programm:
>>>>>>
>>>>>> using System;
>>>>>> using System.IO;
>>>>>>
>>>>>> public class Server
>>>>>> {
>>>>>> public static int Main (string [] args)
>>>>>> {
>>>>>> System.Console.Write( "РљРЈРљРЈРљРЈ\n" );
>>>>>> return 0;
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> that code is supposed to output a string "РљРЈРљРЈРљРЈ\n" to console, but
>>>>>> it
>>>>>> outputs "ГђГђВЈГђГђВЈГђГђВЈ".
>>>>>>
>>>>>> that's wrong with that stuff?
>>>>>>
>>>>>>
>>>>>> Slava.
>>>>>> _______________________________________________
>>>>>> Mono-devel-list mailing list
>>>>>> Mono-devel-list at lists.ximian.com
>>>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Mono-devel-list mailing list
>>>> Mono-devel-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
>
More information about the Mono-devel-list
mailing list