<div>Hi,</div><div><br></div>AFAIK, it's not a straightforward operation for MySQL. It doesn't convert the existing data If data are stored in latin.<div><br><div>In short, it requires export, processing with iconv and import for the tables affected:</div>
<div><a href="http://khelll.com/blog/mysql/changing-database-encoding-from-latin-to-utf8/">http://khelll.com/blog/mysql/changing-database-encoding-from-latin-to-utf8/</a></div><div><br></div><div>---</div><div>Victor Dubiniuk<br>
</div></div><div><br></div><br><div class="gmail_quote">On Tue, Jun 19, 2012 at 5:58 PM, Thomas Tanghus <span dir="ltr"><<a href="mailto:thomas@tanghus.net" target="_blank">thomas@tanghus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday 19 June 2012 15:01 Klaas Freitag wrote:<br>
> On 19.06.2012 14:41, Thomas Tanghus wrote:<br>
> > Some weird character encoding error I can't reproduce:<br>
> ><br>
> > "I tried two different owncloud server configurations, while trying to<br>
> > rule<br>
> > out if this is a server problem or not.<br>
> ><br>
> > First Setup: Cent OS 6.2 Server, apache/MySQL Second Setup: Windows 2003<br>
> > R2<br>
> > Server, apache/MySQL (Regional options ->  all Greek)<br>
> ><br>
> > Both servers had exactly the same problem - files with filenames in Greek<br>
> > are shown in the web interface properly and they also sync and download,<br>
> > but they are saved with a strange filename in the server's file system.<br>
><br>
> Hmm, as I see in the bug below, you already checked the system encodings.<br>
> Maybe the MySQL database is NOT set the UTF-8?  It seems that the MySQL<br>
> database is not UTF-8 by default but has to be created like this:<br>
<br>
</div>I asked them to change the collation manually in comment #1 to rule that out.<br>
<div class="im"><br>
> CREATE DATABASE `Sample_DB` DEFAULT CHARACTER SET utf8 COLLATE<br>
> utf8_general_ci;<br>
<br>
</div>I did try to merge the request below, but it apparently failed because of sql<br>
syntax error. I don't know how to make sure existing tables are updated to<br>
using utf-8, and to be honest I don't want to mess with the db setup code :-P<br>
<br>
<a href="https://gitorious.org/owncloud/owncloud/merge_requests/120" target="_blank">https://gitorious.org/owncloud/owncloud/merge_requests/120</a><br>
<div class="im HOEnZb"><br>
> <a href="http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1017" target="_blank">http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1017</a><br>
><br>
<br>
--<br>
Med venlig hilsen / Best Regards<br>
<br>
Thomas Tanghus<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
</div></div></blockquote></div><br>