Russian Lang files in UTF-8 encoding

37 views
Skip to first unread message

dkarasev

unread,
Nov 19, 2010, 4:14:48 PM11/19/10
to Factory Nova (FN): unofficial support group
Hello everyone,

I would like to share with you the russian language files converted to
UTF-8 format. Hopes this is not broke any license terms.

You can download it in Files section - http://groups.google.com/group/factory-nova/web/lang.zip

To have a complete support of UTF-8 you have to check and modify all
files in /lib/sql/ replace string CHARSET=cp1251 to CHARSET=utf8

Unfortunately after converting all files and DB to UTF-8 DB connection
is still trying to init in Windows-1251, the only solution I found at
the moment is put "skip-character-set-client-handshake" in your /etc/
mysql/my.cnf file.

Maybe Sergey if he read this posts can share a knowledge how to make
DB connection init to UTF-8 properly.

Cheers
Message has been deleted

Ludo Jambrich

unread,
Nov 22, 2010, 4:57:27 AM11/22/10
to factor...@googlegroups.com
Hi, will this help?

http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html

--
slnečné jesenné dni praje

Ludo Jambrich
+421 905 661050



--
You received this message because you are subscribed to the Google Groups "Factory Nova (FN): unofficial support group" group.
To post to this group, send email to factor...@googlegroups.com.
To unsubscribe from this group, send email to factory-nova...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/factory-nova?hl=en.


dkarasev

unread,
Nov 23, 2010, 6:37:07 PM11/23/10
to Factory Nova (FN): unofficial support group

dkarasev

unread,
Nov 23, 2010, 6:38:38 PM11/23/10
to Factory Nova (FN): unofficial support group
Hi Ludo,

As workaround - maybe. Thank you!


On 22 ноя, 12:57, Ludo Jambrich <ludo.jambr...@netmarketer.eu> wrote:
> Hi, will this help?
>
> http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
>
> --
> slnečné jesenné dni praje
>
> Ludo Jambrich
> +421 905 661050
>
> On Fri, Nov 19, 2010 at 10:14 PM, dkarasev <dkara...@gmail.com> wrote:
> > Hello everyone,
>
> > I would like to share with you the russian language files converted to
> > UTF-8 format. Hopes this is not broke any license terms.
>
> > You can download it in Files section -
> >http://groups.google.com/group/factory-nova/web/lang.zip
>
> > To have a complete support of UTF-8 you have to check and modify all
> > files in /lib/sql/ replace string CHARSET=cp1251 to CHARSET=utf8
>
> > Unfortunately after converting all files and DB to UTF-8 DB connection
> > is still trying to init in Windows-1251, the only solution I found at
> > the moment is put "skip-character-set-client-handshake" in your /etc/
> > mysql/my.cnf file.
>
> > Maybe Sergey if he read this posts can share a knowledge how to make
> > DB connection init to UTF-8 properly.
>
> > Cheers
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Factory Nova (FN): unofficial support group" group.
> > To post to this group, send email to factor...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > factory-nova...@googlegroups.com<factory-nova%2Bunsu...@googlegroups.com>
> > .

dkarasev

unread,
Nov 23, 2010, 6:45:44 PM11/23/10
to Factory Nova (FN): unofficial support group
Under switching Factory Nova to UTF-8 I had an issue with downloading
files. In the begining of each file system put a set of bytes in hex -
EF BB BF EF BB BF e.t.c
The problem was I'd save a few files in UTF-8 BOM format and this BOM
add this bytes.

The solution is simple - find all files with UTF-8 BOM encoding and
remove BOM bytes. To do that fast open your UNIX console on a hosting
and run following command in /factory folder:

1) To find out files with UTF8 BOM encoding:
find . -type f -print0 | xargs -0r awk '/^\xEF\xBB\xBF/ {print
FILENAME}{nextfile}'

2) To fix all of them
find . -type f -exec sed 's/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm
{}.bak \;

Hopes this will keep a lot of hours for seaching the solution to
somebody =)
Reply all
Reply to author
Forward
0 new messages