Hi Gert, thanks for your response! I had set my original relevant files as
UCS-2. I am using replace tokens so now I understand why the encoding types
were changed. Anyways, now that I am setting the output  encoding everything
is working great, I should have tried that sooner.

Thanks for your help!
Shan


On 1/19/07, Gert Driesen < [EMAIL PROTECTED]> wrote:


----- Original Message -----
From: "Shan Plourde" <[EMAIL PROTECTED]>
To: <nant-users@lists.sourceforge.net>
Sent: Friday, January 19, 2007 2:28 PM
Subject: [NAnt-users] nant <copy> copies Unicode files but changes
Encodingto ASCII


> Hi everyone, does anyone have an idea if there is anything that I can do
> to
> prevent nant from changing my unicode file types to ASCII? I am guessing

> that it is changing my unicode files to the system default code page on
my
> system of CP 437. It's causing issues because I use the <exec> nant task
> to
> invoke SQL Server osql from teh command line. I prepopulate data this
way
> into fresh databases but my unicode data is getting converted into ASCII
> CP
> 437 so the data winds up getting inserteed into SQL Server incorrectly.
> Any suggestions or recommendations? I'm sure this is not a new thing so
> hopefully there is a relatively easy resolution that someone knows of!

Are you using filters ? <copy> will only change encoding of a file if
either
input or output encoding is set, or if filters are configured for the copy

opertation.

If your files are unicode (and have a BOM), then you should have no
problems. Otherwise, set the input encoding explicitly.

Gert


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to