[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]Problems with UTF-8
From: |
brunoacf |
Subject: |
Re: [DotGNU]Problems with UTF-8 |
Date: |
Mon, 24 Nov 2003 14:44:05 -0200 |
>
> The original mail uses latin1 charset. I've got the same warning messages when
> utftest.cs was encodded with with latin1 instead of utf8.
> Are you sure you've used utf-8 encoding?
>
OK, I'm using Latin1. Must I change to
UTF-8 to write and compile my c# programs?
Thank you.
Bruno.
> Try the following
> $ od -c utftest.cs
>
> if the file is utf-8 encodded you get
> 0000000 c l a s s u t f t e s t \n { \n
> 0000020 \t p u b l i c s t a t i c v
> 0000040 o i d M a i n ( ) { \n \t
> 0000060 \t S y s t e m . C o n s o l e .
> 0000100 W r i t e L i n e ( " P r o t
> 0000120 303 251 g 303 251 " ) ; \n \t } \n } \n
>
> if the file is latin1 encodded you get
> 0000000 c l a s s u t f t e s t \n { \n
> 0000020 \t p u b l i c s t a t i c v
> 0000040 o i d M a i n ( ) { \n \t
> 0000060 \t S y s t e m . C o n s o l e .
> 0000100 W r i t e L i n e ( " P r o t
> 0000120 351 g 351 " ) ; \n \t } \n } \n
>
> All numbers are octals
> Latin1: 351 = 11101001 matches the rule 1110xxxx
>
must be followed by two bytes 10xxxxxx and is not
> Utf-8: 303 = 11000011 matches the rule 110xxxxx
> must be followed by one byte 10xxxxxx
>
The following 251 = 10101001 matches the rule
> --
> MirosÅaw DobrzaÅski-Neumann
> E-mail: address@hidden
>
> This message is utf-8 encoded
> _______________________________________________
> Developers mailing list
> address@hidden
> http://dotgnu.org/mailman/listinfo/developers
>
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/