[Mono-list] Which IDE?
Petit Eric
surfzoid at gmail.com
Wed Nov 21 05:42:34 EST 2007
First i don't know asp, but in PHP/HTML yu can add at the first line
the encoding type :
<html><head><meta http-equiv=content-type content="text/html;
charset=ISO-8859-1">
i'm french, and i could also use ISO-8859-15 for "€".
Second
In vb or C# it's really simple to use IO class for make a loop on all
*.aspx file in a dir and say
Dim AllFiles As New IO.DirectoryInfo("SelectedPath")
For Each file As IO.FileInfo In AllFiles.GetFiles
If file.FullName.EndsWith(".aspx") Then
Dim StrIn As New
System.Text.StringBuilder(IO.File.ReadAllText(file.FullName))
IO.File.WriteAllText(StrIn.ToString(),
file.FullName, System.Text.Encoding.UTF8)
End If
Next
2007/11/21, Robert Jordan <robertj at gmx.net>:
> sasha wrote:
> >> If you save your aspx files in VS.NET in UTF8 encoding with byte marker,
> >> then everything will be fine with non-english letters.
> >
> > It's clear, but what should i do with big projects which contains
> > thoutands files in CP1251? I only know how to save single file in UTF-8
> > (Menu File -> Advanced save option) and i don't know any settings in VS
> > for setting UTF8 as default encoding for all files :-( Maybe you can
> > give me some advice?
> >
>
> This is done like in MS ASP.NET. It must be a strange coincidence :-)
>
> http://www.mono-project.com/FAQ:_ASP.NET#How_can_I_set_the_encoding_of_my_files.3F
>
> Robert
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
More information about the Mono-list
mailing list