ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] QT3, MySQL и русские буквы
@ 2003-03-29 18:09 Прокопьев Евгений
  2003-03-29 22:35 ` Alexander Dymo
  0 siblings, 1 reply; 2+ messages in thread
From: Прокопьев Евгений @ 2003-03-29 18:09 UTC (permalink / raw)
  To: community

Здравствуйте!

Вот прочитал раздел Creating Database Applications в QT Assistant и 
решил попробовать.

Создал табличку author следующего содержания:

+----+----------+-----------+
| id | forename | surename  |
+----+----------+-----------+
|  1 | Ivan     | Petrov II |
| 16 | ????     | ???????   |
| 12 | Petr     | Filippov  |
| 17 | Федя     | Хрюков    |
+----+----------+-----------+

Приложение (просто отображающую таблицу) нарисовал в QT Designer, кода в 
нем кроме main практически нет. Все сделал по умолчанию.

Последняя строка (добавленная через утилиту mysql) в QT-приложении 
выглядит так:

+----+----------+-----------+
| 17 | ?A*A"N~     | e`O`A`E"I"?    |
+----+----------+-----------+

А строка 16 была добавлена с помощью приложения, но сразу после нажатия 
Enter превратилась в вопросительные знаки.

Собственно вопрос: как бороться с русскими буквами в QT-приложениях, 
работающих с MySQL? Куда хотя бы копать? Если QT ожидает увидеть в MySQL 
юникод, то как его туда ввести?

Кстати, та же беда в KOffice: я могу в KSpread вставить данние из MySQL, 
но русские буквы отображаются аналогично.

-- 
С уважением, Прокопьев Евгений



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-29 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-29 18:09 [Comm] QT3, MySQL и русские буквы Прокопьев Евгений
2003-03-29 22:35 ` Alexander Dymo

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