ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renato Gasparelli Cavalcante <renat...@vettatech.com>
Subject Re: encoding help
Date Fri, 07 May 2004 21:37:12 GMT

I also think in it, that's wy i am using hexedit, it shows the file in a 
hexadecimal format.

This is the hexedit output.

output.xml

00000000   
3F                                                                            
?
00000018
...


build.xml

00000000   3C 3F 78 6D      6C 20 76 65      72 73 69 6F      6E 3D 22 
31      2E 30 22 20      65 6E 63 6F          <?xml version="1.0" enco
00000018   64 69 6E 67      3D 22 49 53      4F 2D 38 38      35 39 2D 
31      22 20 3F 3E      0A 3C 70 72          ding="ISO-8859-1" ?>.<pr
00000030   6F 6A 65 63      74 20 6E 61      6D 65 3D 22      74 65 73 
74      45 6E 63 6F      64 69 6E 67          oject name="testEncoding
00000048   22 20 64 65      66 61 75 6C      74 3D 22 6D      61 69 6E 
22      3E 0A 09 3C      74 61 72 67          " default="main">..<targ
00000060   65 74 20 6E      61 6D 65 3D      22 6D 61 69      6E 22 3E 
0A      09 09 3C 65      63 68 6F 20        et name="main">...<echo
00000078   6D 65 73 73      61 67 65 3D      22 B5 22 20      66 69 6C 
65      3D 22 6F 75      74 70 75 74           message="." file="output
00000090   2E 74 78 74      22 2F 3E 0A      09 3C 2F 74      61 72 67 
65      74 3E 0A 3C      2F 70 72 6F         .txt"/>..</target>.</pro
000000A8   6A 65 63 74     3E 
0A                                                                      
                                                 ject>.
000000C0
...


Robert Koberg wrote:

> The character is most likely correct. It is most likely that Ant 
> outputs UTF-8 and your editor does not support it. (or it does not 
> support what ant outputs (UTF-16 ?)).
>
> Use an editor that understands UTF-8
>
> best,
> -Rob
>
>
>
> Renato Gasparelli Cavalcante wrote:
>
>>
>> hexedit
>>
>> Matt Benson wrote:
>>
>>> What are you using to view output.txt?
>>>
>>> --- Renato Gasparelli Cavalcante
>>> <renatogc@vettatech.com> wrote:
>>>  
>>>
>>>>    Hi
>>>>
>>>>    I have the following script:
>>>>
>>>> build.xml
>>>>
>>>>  
>>>>
>>>>> <?xml version="1.0" encoding="ISO-8859-1" ?>
>>>>> <project name="testEncoding" default="main">
>>>>>        <target name="main">
>>>>>                <echo message="µ"
>>>>>     
>>>>
>>>>
>>>> file="output.txt"/>
>>>>  
>>>>
>>>>>        </target>
>>>>> </project>
>>>>>     
>>>>
>>>>
>>>> output.xml
>>>>
>>>>  
>>>>
>>>>> ?
>>>>>     
>>>>
>>>>
>>>>    Does anyone know wy the character 'µ' (MICRO
>>>> SIGN |U+00B5| <http://www.eki.ee/letter/chardata.cgi?ucode=00B5>)
>>>> is becoming '?' (QUESTION MARK  |U+003F| 
>>>> <http://www.eki.ee/letter/chardata.cgi?ucode=003F>)
>>>> ?
>>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message