db charset

17 views
Skip to first unread message

slauta

unread,
Nov 23, 2011, 8:36:58 AM11/23/11
to frap...@googlegroups.com
Hello!

Sorry, I do not speak English (

The problem is that in the derivation of db Cyrillic, there are problems with the encoding.
A method of solving this problem in the file src / frapi / library / Frapi -> Database.php: 64 added

                 if (! isset ($ configs ['db_charset'])){ $ configs [' db_charset '] =' utf8 ';}
                 self:: $ instance [$ name] -> exec ('SET CHARACTER SET'. $ configs ['db_charset']);
                 self:: $ instance [$ name] -> exec ('SET NAMES'. $ configs ['db_charset']);

It would be good to add a setting in the next release.

Another poser with the conclusion. For example the standard output frmaty. Json, but it must always deliver exactly. Json, to display information in that format

David Coallier

unread,
Nov 23, 2011, 12:41:18 PM11/23/11
to frap...@googlegroups.com
Very good point. If you feel like trying to make this into a patch,
I'd be happy to review it and give you tips on how to improve it (if
needs be) or simply include it :))

--
David Coallier

slauta

unread,
Nov 23, 2011, 1:50:17 PM11/23/11
to frapi-dev
Still it would be cool to add a choice of authentication method that
is implemented yet another alternative method of access to a private
rout, because http autontification not easy to implement for iOS or
Android.

And cool the engine. It would be nice to think about increasing
productivity.

On 23 ноя, 19:41, David Coallier <dav...@php.net> wrote:
> Очень хороший момент. Если вы чувствуете, как пытаются сделать это в патч,
> Я был бы счастлив рассмотреть его и дать вам советы о том, как улучшить его (если
> потребности быть) или просто включить его:))
>
> На 23 ноября 2011 13:36, Слаута <ро...@ antalika.com> писал:
>
>
>
>
>
>
>
>
>
> > Привет!
>
> > К сожалению, я не говорю по английски (
>
> > Проблема в том, что при выводе из БД кириллицы, Есть проблемы
> > С кодировкой.
> > Способ решения этой проблемы в файле SRC / frapi / библиотека / Frapi
> > -> Database.php: 64 добавили
>
> > Если (! ISSET ($ конфиги ['db_charset'])){ $ конфиги ['
> > Db_charset '] =' utf8 ';}
> > Сам::. $ Например, [$ имя] -> EXEC ('SET CHARACTER SET' $
> > Конфиги ['db_charset']);
> > Сам::. $ Например, [$ имя] -> Exec ('SET NAMES' $ конфиги
> > ['Db_charset']);
>
> > Было бы хорошо, чтобы добавить параметр в следующем релизе.
>
> > Еще один позер с выводом. Например стандартный фрматы выход.
> > Json, но она всегда должна доставлять точно. Json, для отображения информации в
> > Этот формат
>
> -
> Дэвид Coallier

Reply all
Reply to author
Forward
0 new messages