AW: [Mono-dev] Umlaute/special Chars

Stephan Hüper s.hueper at hyper-net.de
Mon May 29 13:00:50 EDT 2006


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060529/c5d474d1/attachment.html 


More information about the Mono-devel-list mailing list