At first, Im confused about encoding setup ISO8859-1 vs UTF-8 so please read
between the lines. Hopefully someone can tell me how to setup UTF-8 encoding
(I guess) on a FreeBSD machine with Plone. Please also comment on errors
(one of them is Unicode related).

Im using FreeBSD 8.1, Plone 4.0.4 and EasyNewsLetter 2.5.10a2. Im using
Data.fs during test instead of Postgresql 9.0.3 and RelStorage.

Im setting Plone up for danish users so they expect letters like "æøå" to
work. Ive tried UTF-8 and ISO8859-1. Finally I ended up with UTF-8, since
Plone is using this encoding internally. My /root/.cshrc:

setenv LANG da_DK.UTF-8  
setenv MM_CHARSET da_DK.UTF-8  
setenv LC_CTYPE da_DK.UTF-8 
setenv LC_COLLATE da_DK.UTF-8
setenv LC_TIME da_DK.UTF-8
setenv LC_NUMERIC da_DK.UTF-8
setenv LC_MONETARY da_DK.UTF-8
setenv LC_MESSAGES da_DK.UTF-8

I do not set the "keymap=danish.iso" (in /etc/rc.conf) on test machine but
is swithing between US and Danish keyboard using setxkbmap (xorg). NB the
production machine will not have xorg.

Now to the errors (please comment):

--------------------------------------------------------------------------
utf-8 and iso8859-1: when running buildout:

SyntaxError: ("'return' outside function",
('build/bdist.freebsd-8.0-RELEASE-p2-i386/egg/Products/EasyNewsletter/skins/EasyNewsletter/enl_isOrderable.py',
2, None, "return context.portal_interface.objectImplements(context,
'OFS.OrderSupport.IOrderedContainer')\n"))

SyntaxError: ("'return' outside function",
('/usr/local/Plone/buildout-cache/eggs/tmpbefJLY/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/skins/EasyNewsletter/enl_isOrderable.py',
2, None, "return context.portal_interface.objectImplements(context,
'OFS.OrderSupport.IOrderedContainer')\n"))


--------------------------------------------------------------------------
utf-8 and iso8859-1: after installing:

------
2011-04-09T10:37:00 WARNING PlacelessTranslationService Error while
compiling
/usr/local/Plone/buildout-cache/eggs/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/i18n/easynewsletter-plone-de.po
 

------
2011-04-09T10:37:00 WARNING PlacelessTranslationService Error while
compiling
/usr/local/Plone/buildout-cache/eggs/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/i18n/easynewsletter-plone-fr.po
 

------
2011-04-09T10:37:00 WARNING PlacelessTranslationService Error while
compiling
/usr/local/Plone/buildout-cache/eggs/Products.EasyNewsletter-2.5.10a2-py2.6.egg/Products/EasyNewsletter/i18n/easynewsletter-plone-it.po
 


--------------------------------------------------------------------------
The log says that using "inqbus.plone.fastmemberproperties" will improve
search performance, but doing so (egg) it not recognized - the warning is
still there:

2011-04-06T17:12:21 INFO Products.EasyNewsletter We use plone API to get
memberproperties, this ist very slow on many members, please install
inqbus.plone.fastmemberproperties to make it fast!


--------------------------------------------------------------------------
iso8859-1: when using letters like "æøå" in the title of and issue and
saving:

------
2011-04-08T15:42:01 ERROR Zope.SiteErrorLog 1302270121.850.962207895276
http://basse/Members/admin/mysecondnewsletter/det-forste-issue/send-issue
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Products.EasyNewsletter.browser.issue, line 19, in send_issue
  Module Products.EasyNewsletter.content.ENLIssue, line 364, in send
  Module email.header, line 176, in __init__
  Module email.header, line 260, in append
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5:
ordinal not in range(128)


--------------------------------------------------------------------------
Using utf-8 in run mode (after installing with iso8859-1 in LC_CTYPE): when
saving an issue with the letter "ø" in the title:

------
2011-04-08T21:04:44 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/basse-nyheder/det-forste-nyhedsbrev/edit:
database conflict error (oid 0x12a7, class
Products.EasyNewsletter.content.ENLIssue.ENLIssue) (1 conflicts (0
unresolved) since startup at Fri Apr  8 20:39:42 2011)
------


-------------------------------------
utf-8: now able to save, but when sending with ø in title:

------
2011-04-09T11:56:09 ERROR Zope.SiteErrorLog 1302342969.10.994456186908
http://basse/Members/admin/basse-nyheder/det-forste-issue-og-ikke-helt/send-issue
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Products.EasyNewsletter.browser.issue, line 19, in send_issue
  Module Products.EasyNewsletter.content.ENLIssue, line 364, in send
  Module email.header, line 176, in __init__
  Module email.header, line 260, in append
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5:
ordinal not in range(128)


-------------------------------------
When giving focus to the Title input field for an issue:

------
2011-04-09T11:12:08 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c8192609cc 2011-04-09 09:12:05.894200, serial
currently committed 0x038d85c825204522 2011-04-09 09:12:08.701419) (1
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)
------
2011-04-09T11:12:44 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c829b9e688 2011-04-09 09:12:09.779572, serial
currently committed 0x038d85c8bf0949dd 2011-04-09 09:12:44.774129) (2
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)
------
2011-04-09T11:12:47 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c8c1cee755 2011-04-09 09:12:45.423801, serial
currently committed 0x038d85c8cbe7a000 2011-04-09 09:12:47.790184) (3
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)
------
2011-04-09T11:12:48 INFO ZPublisher.Conflict ConflictError at
/VirtualHostBase/http/basse:80/vaio/VirtualHostRoot/Members/admin/portal_factory/EasyNewsletter/easynewsletter.2011-04-09.3248375499/kssValidateField:
database conflict error (oid 0x0551, class BTrees.IOBTree.IOBTree, serial
this txn started with 0x038d85c8cdd3bf77 2011-04-09 09:12:48.240736, serial
currently committed 0x038d85c8d05ba399 2011-04-09 09:12:48.833898) (4
conflicts (0 unresolved) since startup at Sat Apr  9 11:04:11 2011)




--
View this message in context: 
http://plone.293351.n2.nabble.com/Plone-4-0-4-EasyNewsletter-and-UTF-8-encoding-on-FreeBSD-tp6257087p6257087.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/setup

Reply via email to