From: "Cергей Inhbgkbyu" <rakoth.ru@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Apache + php +mysql = непонятки с кодировками
Date: Fri, 14 Aug 2009 14:11:46 +0700
Message-ID: <1e4e717b0908140011n55b144c3v1f7d2baf07936881@mail.gmail.com> (raw)
In-Reply-To: <200908141108.31389.tutov@aston.ru>
14 августа 2009 г. 14:08 пользователь Roman V. Tutov (tutov@aston.ru) написал:
> On Friday 14 August 2009 10:47:16 Alexey Morsov wrote:
>> интерактивный mysql дает select тоже вопросиками?
>> после конекта первым запросом должен идти set names <your codepage>
>
> что такое "интерактивный mysql" ?
> запросы делает движок сайта ..а мне его нельзя ломать ...
Зачем ломать?
mysql_query( 'SET NAMES utf8' ); //ну или какая у вас используется.
вставить после
@mysql_connect( $sqlserver, $sqluser, $sqlpassword );
@mysql_select_db( $database );
А ещё важно проверить, какая кодировка стоит по умолчанию для таблиц,
и какая кодировка указана для текстовых полей таблиц.
Надо чтобы совпадала! =)
--
Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
xmpp: rakoth_s@jabber.ru
xmpp: rakoth_s@jabber.org
skype: rakoth_s
next prev parent reply other threads:[~2009-08-14 7:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 6:45 Roman V. Tutov
2009-08-14 6:47 ` Alexey Morsov
2009-08-14 7:08 ` Roman V. Tutov
2009-08-14 7:11 ` Cергей Inhbgkbyu [this message]
2009-08-14 7:40 ` Roman V. Tutov
2009-08-14 9:30 ` Michael Shigorin
2009-08-14 9:49 ` Nikolay A. Fetisov
2009-08-14 10:11 ` Roman V. Tutov
2009-08-14 10:31 ` Nikolay A. Fetisov
2009-08-14 10:51 ` Roman V. Tutov
2009-08-14 12:28 ` Michael Shigorin
2009-08-14 7:20 ` Михаил Паршин ака SKeeper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e4e717b0908140011n55b144c3v1f7d2baf07936881@mail.gmail.com \
--to=rakoth.ru@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git