ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Михаил Паршин ака SKeeper" <alt-skeeper@yandex.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Apache + php +mysql = непонятки с кодировками
Date: Fri, 14 Aug 2009 11:20:54 +0400
Message-ID: <4A851056.9000902@yandex.ru> (raw)
In-Reply-To: <200908141045.56702.tutov@aston.ru>

Сталкивался с подобными проблемами при импорте через пхпМайАдмин, 
особенно, если кодировка utf-8. Разбираться особо не стал и импортирую в 
консоли при помощи команды:

mysql -u root -p --default-character-set=utf8 db_name < 
/path/to/dump/dump.sql

Замените кодировку на нужную Вам и попробуйте сделать так.


Roman V. Tutov пишет:
> День добрый . Понадобилось мне развернуть копию сайта на ноутбуке и встретился 
> с проблемами кодировок ..так как делаю это в первый раз в жизни - огреб 
> проблем :(
>
> у меня в наличии есть бэкап сайта сделанный оснасткой cpanel пытаюсь 
> развернуть сайт на своем ноуте ...
>
> ставлю следующие пакеты :
>
> phpMyAdmin-apache-php5-2.11.8.1-alt0.M41.1
> apache-mod_php5-5.2.5-alt1.M41.3
> apache-common-1.3.41rusPL30.23-alt4
> apache-1.3.41rusPL30.23-alt4
> php5-mysql-5.2.5-alt1
> mod_auth_mysql-3.0.0-alt4
> php-mysql-4.4.8-alt1
> MySQL-server-5.0.51-alt2.a
>
>
> все файлы сайта вываливаю в /var/www/html/
> дамп базы заливаю через phpMyAdmin указываю при этом правильно кодировку файла 
> дампа 
>
>
> сайт запускается .. и все на сайте что отображается из шаблонов (из html 
> файла) отображается правильно , а все что берется из базы - отображается 
> вопросительными знаками ..
>
> Вопрос как всегда ..куда копать ?  
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community



      parent reply	other threads:[~2009-08-14  7:20 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
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 [this message]

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=4A851056.9000902@yandex.ru \
    --to=alt-skeeper@yandex.ru \
    --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