[Mono-dev] Umlaute/special Chars

Rafael Teixeira monoman at gmail.com
Mon May 29 14:57:02 EDT 2006


Are you sure you didn't precompile the web services in VS.NET, or are
they written in C#? Because as I pointed while answering other of your
emails, mbas currently isn't correctly compiling some common code
constructs, that frequently appear in the generated code inside
ASP.NET pages/web services.

If you precompiled your utf-8-encoded sources in VS.NET you need to
tell VS.NET they aren't using the default encoding, or it will compile
them wrong. And vice-versa if you didn't pre-compile but deployed
sources that aren't utf-8-encoded (normally VS.NET saves them in the
'default' encoding that corresponds to the configured codepage for
your user in windows) the instructions you've put on the config file,
will make things the wrong way also.

Hope it helps,

On 5/29/06, Stephan Hüper <s.hueper at hyper-net.de> wrote:
>
>
>
>
> Hello,
>
>
>
> in the XSP directory, where the „ServiceClient.exe" lays, I wrote the
> changes in web.config like described in the FAQ . (see at the end)
>
> I restarted Apache2 and all  mod_mono processes, but no effect.
>
> The webservice only shows ? for special Chars.
>
>
>
> What should I do?
>
>
>
> Thanks for help
>
> Stephan Hüper
>
>
>
> ################################################################
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <configuration>
>
> <!-- Enable this if you want gzip compression. Also uncomment the
> <mono.aspnet> section below
>
>                 <configSections>
>
>                     <sectionGroup name="mono.aspnet">
>
>                                <section name="acceptEncoding"
> type="Mono.Http.Configuration.AcceptEncodingSectionHandler,
> Mono.Http, Version=1.0.5000.0,
> PublicKeyToken=0738eb9f132ed756"/>
>
>                     </sectionGroup>
>
>     </configSections>
>
> -->
>
>     <system.web>
>
>     <compilation>
>
>         <compilers>
>
>     <compiler language="vb;vbs;visualbasic;vbscript"
> extension=".vb" warningLevel="1"
>
>               compilerOptions="/codepage:utf8"
>
>               type="Microsoft.VisualBasic.VBCodeProvider,
> System, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089" />
>
>               <compiler language="cs;c#;csharp" extension=".cs"
> warningLevel="1"
>
>
> compilerOptions="/codepage:utf8"
>
>
> type="Microsoft.CSharp.CSharpCodeProvider, System,
> Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089" />
>
>         </compilers>
>
>        </compilation>
>
>        <globalization  requestEncoding="utf-8"
>
>                        responseEncoding="utf-8"
>
>                    fileEncoding="utf-8"/>
>
>         <customErrors mode="Off"/>
>
>                 <!--
>
>                 <webServices>
>
>                                <soapExtensionTypes>
>
>                                                <add
> type="DumpExtension, extensions" priority="0" group="0" />
>
>                                                <add
> type="EncryptExtension, extensions" priority="1" group="0" />
>
>                                </soapExtensionTypes>
>
>                 </webServices>
>
>                 -->
>
>                 <authentication mode= "None">
>
>                 </authentication>
>
>                 <httpModules>
>
>                 <!-- Some modules available in Mono.Http -->
>
>                 <!--
>
>             <add name="AcceptEncodingModule"
> type="Mono.Http.Modules.AcceptEncodingModule, Mono.Http,
> Version=1.0.5000.0, PublicKeyToken=0738eb9f132ed756"/>
>
>                 -->
>
>             <!--<add name="BasicAuthenticationModule"
>
>
> type="Mono.Http.Modules.BasicAuthenticationModule,
> Mono.Http"/>-->
>
>             <!--<add name="DigestAuthenticationModule"
>
>
> type="Mono.Http.Modules.DigestAuthenticationModule,
> Mono.Http"/>-->
>
>                 </httpModules>
>
>                 <pages validateRequest="false" />
>
>     </system.web>
>
>
>
> <!-- If you use AcceptEncodingModule, you need this too
>
>
>
>     <mono.aspnet>
>
>         <acceptEncoding>
>
>                     <add encoding="gzip" type="Mono.Http.GZipWriteFilter,
> Mono.Http, Version=1.0.5000.0,
> PublicKeyToken=0738eb9f132ed756" disabled="no" />
>
>                 </acceptEncoding>
>
>     </mono.aspnet>
>
> -->
>
>
>
>     <appSettings>
>
>                 <add key="MonoServerDefaultIndexFiles"
>
>                      value="index.aspx, Default.aspx, default.aspx,
> index.html, index.htm" />
>
>                 <add key="DBProviderAssembly"
>
>                      value="Npgsql"/>
>
>                 <add key="DBConnectionType"
>
>                      value="Npgsql.NpgsqlConnection"/>
>
>                 <add key="DBConnectionString"
>
>                      value="server=127.0.0.1;user
> id=monotest;password=monotest;dbname=monotest"/>
>
>                 <!--<add key="Authentication" value="Basic" />
>
>                 <add key="Basic.Users" value="basic-auth.txt" />-->
>
>                 <!--<add key="Authentication" value="Digest" />
>
>                 <add key="Digest.Users" value="basic-auth.txt" />-->
>
>     </appSettings>
>
> </configuration>
>
> ##############################################################################
>
>
>
>
>
> Von: Stephan Hüper [mailto:S.Hueper at hyper-net.de]
>  Gesendet: Samstag, 13. Mai 2006 23:16
>  An: Rafael Teixeira; Miguel de Icaza
>  Cc: mono-devel-list at lists.ximian.com
>  Betreff: AW: [Mono-dev] Umlaute/special Chars
>
>
>
> Hi!
>  Where should I modify the web.config?
>  At my Vs.Net Project or at xsp/mod_mono ?
>
>  Thank You!
>  Stephan
>
>  -----Ursprüngliche Nachricht-----
>  Von: mono-devel-list-bounces at lists.ximian.com
> [mailto:mono-devel-list-bounces at lists.ximian.com] Im
> Auftrag von Rafael Teixeira
>  Gesendet: Samstag, 13. Mai 2006 21:16
>  An: Miguel de Icaza
>  Cc: Stephan Hüper; mono-devel-list at lists.ximian.com
>  Betreff: Re: [Mono-dev] Umlaute/special Chars
>
>  -codepage is also supported by mbas for compiling VB.NET in Mono. But
>  beware that you may have to set things indirectly: in web.config,
>  unless you precompile.
>
>  If you can't dig the details on online documentation (msdn and Mono
>  sites & mailing-lists archives), ask again here.
>
>  Fun,
>
>  On 5/13/06, Miguel de Icaza <miguel at ximian.com> wrote:
>  > Hello,
>  >
>  > > I programmed a .Net 2003 VB Webservice, which works fine, but there is
>  > > a problem
>  > >
>  > > with german umlaute/special chars, like äöüß. Only "?" is shown.
>  > >
>  > > What should I do?
>  >
>  > This is likely an encoding problem.  The problem is tracking it down.
>  >
>  > If your web service files are in C#, its easy, the compiler is using one
>  > encoding to compile, and your files are stored in another one.   Use the
>  > -codepage: parameter to mcs to specify the encoding of your sources.
>  >
>  > Miguel
>  >
>  > _______________________________________________
>  > Mono-devel-list mailing list
>  > Mono-devel-list at lists.ximian.com
>  >
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>  >
>
>
>  --
>  Rafael "Monoman" Teixeira
>  ---------------------------------------
>  As I'm currently working a lot with Java and even fixing Java VMs
>  (JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
>  title (Javaman) from my friend Bruno Souza and become the
>  MonoNJavaMan. Yeah, I may currently be crazier than usual...
>  _______________________________________________
>  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
>
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
As I'm currently working a lot with Java and even fixing Java VMs
(JamVM/Kaffe) and GNU Classpath code, I think I may partly borrow the
title (Javaman) from my friend Bruno Souza and become the
MonoNJavaMan. Yeah, I may currently be crazier than usual...


More information about the Mono-devel-list mailing list