ALT Linux Bugzilla
– Attachment 2274 Details for
Bug 13448
Не указывается кодировка клиента при подключении к БД (веб интерфейс)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Patch для указания кодировки клиента при подключении к PostgreSQL
functions.php.patch (text/plain), 403 bytes, created by
Alexander Andreev
on 2007-11-16 14:12:58 MSK
(
hide
)
Description:
Patch для указания кодировки клиента при подключении к PostgreSQL
Filename:
MIME Type:
Creator:
Alexander Andreev
Created:
2007-11-16 14:12:58 MSK
Size:
403 bytes
patch
obsolete
>--- functions.php.orig 2007-11-16 13:30:42 +0300 >+++ functions.php 2007-11-16 13:38:50 +0300 >@@ -137,6 +137,14 @@ > > if($debug==2) $conn->debug = true; > >+if($sqltype == "PostgreSQL"){ >+ // Óñòàíîâêà êîäèðîâêè êëèåíòà >+ $q_set_enc = 'SET CLient_Encoding=windows1251'; >+ $conn->Execute($q_set_enc); >+}else{ >+ // Óñòàíîâêà êîäèðîâêè êëèåíòà >+} >+ > > /* > Îïèøåì ôóíêöèè
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13448
: 2274