If you're talking about the sql-maven-plugin, you could set the encoding like 
this:

http://mojo.codehaus.org/sql-maven-plugin/execute-mojo.html#encoding

 

Otherwise it sounds like a bug. Please create an issue at 
http://jira.codehaus.org/browse/MOJO . 

If would be nice if you could add a unittest, but you might attach a file as 
well, so we can verify the problem.

 

- Robert  
 


From: [email protected]
To: [email protected]
Date: Fri, 26 Feb 2010 13:21:52 +0100
Subject: [mojo-user] Character encoding





Hi!
I recently discovered this plugin and found it very useful for the project I’m 
in.
I use it to execute sql-files containing our database structure and some test 
data.
However, the characters are always encoded in ISO-8859-1 (I guess) and not UTF8 
that we use. If I execute the files manually from sql the encoding is correct, 
but never through the plugin. Even if I put the lines
 
set names "utf8" collate "utf8_swedish_ci";
alter database our_database default character set "utf8" collate 
"utf8_swedish_ci";
 
in the beginning of the files, it does not work.
Is there a solution for this?
/Ludwig                                           
_________________________________________________________________
New Windows 7: Find the right PC for you. Learn more.
http://windows.microsoft.com/shop

Reply via email to