ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Проблемы с кириллицей в redmine
@ 2010-07-20 16:27 Денис Ягофаров
  2010-07-20 21:01 ` Alexey I. Froloff
  2010-07-20 21:24 ` Alexey I. Froloff
  0 siblings, 2 replies; 7+ messages in thread
From: Денис Ягофаров @ 2010-07-20 16:27 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 1941 bytes --]

Доброго времени суток.

Обновился до последней redmine
(сначала удалил пакет, потом поставил заново, мигрировал БД),
но проблемы с кириллицей в wiki (показ истории, где есть кириллица)
так и не решились.

На новой БД всё ОК. Возможно, это как-то связано именно с той
БД, с которой я работал?.. При этом в обоих случаях (старой и новой)
"select * from wiki_contents;" показывают читаемые символы, в консоли
кодировка по умолчанию (скорее всего ru_RU.UTF-8).

Как можно сравнить эти 2 БД и выяснить что поправить?

Конфиги....

/etc/redmine/prodtest/database.yml:
production:
   adapter: sqlite3
   database: /var/redmine/prodtest
   encoding: utf8

/etc/redmine/prodtest/database-maintenance.yml:
production_maintenance:
   adapter: sqlite3
   database: /var/redmine/prodtest
   encoding: utf8

/etc/mongrel_cluster/sites-available/redmine-prodtest.yml:
---
address: 127.0.0.1
port: 9000
servers: 2
environment: production
cwd: /usr/share/redmine
user: _redmine
group: _redmine

/etc/mongrel_cluster/sites-available/redmine-prodtest.env:
export LANG=ru_RU.UTF-8
export X_ALT_SITEID="prodtest"

Ошибка:

ActionView::TemplateError (incompatible character encodings: UTF-8 and 
ASCII-8BIT) on line #17 of app/views/wiki/diff.rhtml:
14:
15: <hr />
16:
17: <%= html_diff(@diff) %>

     app/views/wiki/diff.rhtml:17:in `concat'
     app/views/wiki/diff.rhtml:17:in 
`_run_rhtml_app47views47wiki47diff46rhtml'
     /usr/share/ruby/vendor_ruby/1.9/action_view/renderable.rb:34:in 
`block in render'
     /usr/share/ruby/vendor_ruby/1.9/action_view/base.rb:306:in 
`with_template'


[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 385 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
	xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [sisyphus] Проблемы с кириллицей в redmine
  2010-07-20 16:27 [sisyphus] Проблемы с кириллицей в redmine Денис Ягофаров
@ 2010-07-20 21:01 ` Alexey I. Froloff
  2010-07-20 21:24 ` Alexey I. Froloff
  1 sibling, 0 replies; 7+ messages in thread
From: Alexey I. Froloff @ 2010-07-20 21:01 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

On Tue, Jul 20, 2010 at 07:27:53PM +0300, Денис Ягофаров wrote:
> Обновился до последней redmine (сначала удалил пакет, потом
> поставил заново, мигрировал БД), но проблемы с кириллицей в
> wiki (показ истории, где есть кириллица) так и не решились.
У меня было подозрение, что проблема где-то в районе компрессии
страниц и в последней сборке я это место захачил (а в баге просил
поиграться с этой опцией).

> На новой БД всё ОК. Возможно, это как-то связано именно с той
> БД, с которой я работал?.. При этом в обоих случаях (старой и новой)
> "select * from wiki_contents;" показывают читаемые символы, в консоли
> кодировка по умолчанию (скорее всего ru_RU.UTF-8).
Пришлите мне в личку ваши файлики баз, если не очень дорожите
этими данными.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [sisyphus] Проблемы с кириллицей в redmine
  2010-07-20 16:27 [sisyphus] Проблемы с кириллицей в redmine Денис Ягофаров
  2010-07-20 21:01 ` Alexey I. Froloff
@ 2010-07-20 21:24 ` Alexey I. Froloff
  2010-07-21 15:21   ` Денис Ягофаров
  1 sibling, 1 reply; 7+ messages in thread
From: Alexey I. Froloff @ 2010-07-20 21:24 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

On Tue, Jul 20, 2010 at 07:27:53PM +0300, Денис Ягофаров wrote:
> При этом в обоих случаях (старой и новой) "select * from
> wiki_contents;" показывают читаемые символы, в консоли
> кодировка по умолчанию (скорее всего ru_RU.UTF-8).
Проблема в таблице wiki_content_versions, как раз оттуда может
приходить ASCII-8BIT.

Попробуйте в файле /usr/share/redmine/app/models/wiki_content.rb
добавить выставление кодировки для некомпрессированых страниц
сообразно
http://git.altlinux.org/people/raorn/packages/?p=redmine.git;a=commitdiff;h=cced2db6
, т.е. в 90-й строке заменить "data" на
"data.force_encoding('UTF-8')" и расскажите что получилось со
старой базой.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [sisyphus] Проблемы с кириллицей в redmine
  2010-07-20 21:24 ` Alexey I. Froloff
@ 2010-07-21 15:21   ` Денис Ягофаров
  2010-07-21 15:34     ` Alexey I. Froloff
  0 siblings, 1 reply; 7+ messages in thread
From: Денис Ягофаров @ 2010-07-21 15:21 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

21.07.2010 00:24, Alexey I. Froloff пишет:
> On Tue, Jul 20, 2010 at 07:27:53PM +0300, Денис Ягофаров wrote:
>    
>> При этом в обоих случаях (старой и новой) "select * from
>> wiki_contents;" показывают читаемые символы, в консоли
>> кодировка по умолчанию (скорее всего ru_RU.UTF-8).
>>      
> Проблема в таблице wiki_content_versions, как раз оттуда может
> приходить ASCII-8BIT.
>
> Попробуйте в файле /usr/share/redmine/app/models/wiki_content.rb
> добавить выставление кодировки для некомпрессированых страниц
> сообразно
> http://git.altlinux.org/people/raorn/packages/?p=redmine.git;a=commitdiff;h=cced2db6
> , т.е. в 90-й строке заменить "data" на
> "data.force_encoding('UTF-8')" и расскажите что получилось со
> старой базой.
Получилось. Спасибо!

Что тогда стОит делать? Подождать обновления?

П.С. А какие планы по поводу redmine 1.x ?

[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 370 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
	xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [sisyphus] Проблемы с кириллицей в redmine
  2010-07-21 15:21   ` Денис Ягофаров
@ 2010-07-21 15:34     ` Alexey I. Froloff
  2010-07-21 15:40       ` Денис Ягофаров
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey I. Froloff @ 2010-07-21 15:34 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

On Wed, Jul 21, 2010 at 06:21:01PM +0300, Денис Ягофаров wrote:
> Что тогда стОит делать? Подождать обновления?
Да.

> П.С. А какие планы по поводу redmine 1.x ?
Потихоньку собираю.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [sisyphus] Проблемы с кириллицей в redmine
  2010-07-21 15:34     ` Alexey I. Froloff
@ 2010-07-21 15:40       ` Денис Ягофаров
  2010-07-21 15:42         ` Alexey I. Froloff
  0 siblings, 1 reply; 7+ messages in thread
From: Денис Ягофаров @ 2010-07-21 15:40 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

21.07.2010 18:34, Alexey I. Froloff пишет:
> On Wed, Jul 21, 2010 at 06:21:01PM +0300, Денис Ягофаров wrote:
>    
>> Что тогда стОит делать? Подождать обновления?
>>      
> Да.
>    
Оно не должно быть чревато, если вручную на production-сервере поменять?


[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 370 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
	xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [sisyphus] Проблемы с кириллицей в redmine
  2010-07-21 15:40       ` Денис Ягофаров
@ 2010-07-21 15:42         ` Alexey I. Froloff
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey I. Froloff @ 2010-07-21 15:42 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

On Wed, Jul 21, 2010 at 06:40:02PM +0300, Денис Ягофаров wrote:
> >> Что тогда стОит делать? Подождать обновления?
> > Да.
> Оно не должно быть чревато, если вручную на production-сервере поменять?
Добавить force_encoding?  Не должно.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-07-21 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-20 16:27 [sisyphus] Проблемы с кириллицей в redmine Денис Ягофаров
2010-07-20 21:01 ` Alexey I. Froloff
2010-07-20 21:24 ` Alexey I. Froloff
2010-07-21 15:21   ` Денис Ягофаров
2010-07-21 15:34     ` Alexey I. Froloff
2010-07-21 15:40       ` Денис Ягофаров
2010-07-21 15:42         ` Alexey I. Froloff

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git