Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-10 Thread Jani Tiainen
10.1.2013 8:59, Ian Kelly kirjoitti: On Wed, Jan 9, 2013 at 11:40 PM, Jani Tiainen wrote: If we just force using force_unicode everything works except in older versions of cx_Oracle (our server had 5.0.4 or something) connection strings can't be unicode for some reason. Sure, that's why the c

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Ian Kelly
On Wed, Jan 9, 2013 at 11:40 PM, Jani Tiainen wrote: > If we just force using force_unicode everything works except in older > versions of cx_Oracle (our server had 5.0.4 or something) connection strings > can't be unicode for some reason. Sure, that's why the check exists in the first place. Pr

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Jani Tiainen
9.1.2013 19:21, Ian Kelly kirjoitti: On Wed, Jan 9, 2013 at 3:55 AM, Jani Tiainen wrote: Server is running Oracle Database 10g Release 10.2.0.5.0 - 64bit Production. (EE edition) and charset info: NLS_CHARACTERSETWE8ISO8859P1 NLS_NCHAR_CHARACTERSET AL16UTF16 Sorry, I meant your web

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Ian Kelly
On Wed, Jan 9, 2013 at 3:55 AM, Jani Tiainen wrote: > Server is running Oracle Database 10g Release 10.2.0.5.0 - 64bit Production. > (EE edition) > > and charset info: > NLS_CHARACTERSETWE8ISO8859P1 > NLS_NCHAR_CHARACTERSET AL16UTF16 Sorry, I meant your web server setup. -- You receive

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Jani Tiainen
9.1.2013 12:28, Ian kirjoitti: On Wednesday, January 9, 2013 12:38:28 AM UTC-7, Jani Tiainen wrote: Tested against latest master. Same behaviour. In Oracle backend base.py is following piece of code: # Check whether cx_Oracle was compiled with the WITH_UNICODE option. This will

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Ian
On Wednesday, January 9, 2013 12:38:28 AM UTC-7, Jani Tiainen wrote: > > Tested against latest master. Same behaviour. > > In Oracle backend base.py is following piece of code: > > # Check whether cx_Oracle was compiled with the WITH_UNICODE option. > This will > # also be True in Python 3.0.

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-09 Thread Jani Tiainen
Ok, found source of the problem - but I don't know the solution. I'm using Oracle client 10.2.0.3.0. It seems that unicode doesn't work there. I compiled cx_Oracle against 11g instantclient 11.2 and it worked just fine. So it must be something that Django assumes with Oracle and unicode capa

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-08 Thread Jani Tiainen
Tested against latest master. Same behaviour. In Oracle backend base.py is following piece of code: # Check whether cx_Oracle was compiled with the WITH_UNICODE option. This will # also be True in Python 3.0. if int(Database.version.split('.', 1)[0]) >= 5 and not hasattr(Database, 'UNICODE'):

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-08 Thread Jani Tiainen
8.1.2013 21:00, akaariai kirjoitti: I created the following test case into django's test suite modeltests/ basic/tests.py: def test_unicode(self): # Note: from __future__ import unicode_literals is in effect... a = Article.objects.create(headline='0 \u0442\u0435\u0441\u0442

Re: ORM, Oracle and UTF-8 encoding problem.

2013-01-08 Thread akaariai
I created the following test case into django's test suite modeltests/ basic/tests.py: def test_unicode(self): # Note: from __future__ import unicode_literals is in effect... a = Article.objects.create(headline='0 \u0442\u0435\u0441\u0442 test', pub_date=datetime.n ow())

ORM, Oracle and UTF-8 encoding problem.

2013-01-08 Thread Jani Tiainen
Hi, I've been trying to save UTF-8 characters to oracle database without success. I've verified that database is indeed UTF-8 capable. I can insert UTF-8 characters directly using cx_Oracle. But when I use ORM it will trash characters. Model I use: class MyTest(models.Model): txt = Cha

Re: Utf-8 encoding errors with unicode in urlpatterns - Django 1.3

2011-04-14 Thread Leszek Piątek
from django.conf.urls.defaults import patterns, include, url from views import test urlpatterns = patterns('', url(ur'(?Pdom|działka|kamienica|biuro)/(?Pwynajem| sprzedaż)/$', test, name='home'), ) + http://localhost.com:8000/dzia%25C5%2582ka/sprzeda%25C5%25BC/ I thought it would be more co

Re: Utf-8 encoding errors with unicode in urlpatterns - Django 1.3

2011-04-14 Thread Daniel Roseman
On Wednesday, April 13, 2011 9:31:27 PM UTC+1, Leszek Piątek wrote: > > Hi! > > I've recently came across problem in django. According to > documentation I should be able to use unicode inside urlpatterns - but > something is wrong I guess. > > When URL exists I got error displayed on dev serve

Utf-8 encoding errors with unicode in urlpatterns - Django 1.3

2011-04-14 Thread Leszek Piątek
Hi! I've recently came across problem in django. According to documentation I should be able to use unicode inside urlpatterns - but something is wrong I guess. When URL exists I got error displayed on dev server console (no sigh of problem), but IF URL DOESN'T exists error is printed out on webp

Re: utf-8 encoding not working with mysql

2010-08-17 Thread adam
Karen, Thank you very much. Our collation is set to utf8_bin, which was the source of the problem. Adam On Aug 17, 9:01 pm, Karen Tracey wrote: > 2010/8/17 adam > > > > > > > When I connect directly to mysql using the mysql client program, I see > > that my table contains utf-8 data. Here are th

Re: utf-8 encoding not working with mysql

2010-08-17 Thread Karen Tracey
2010/8/17 adam > When I connect directly to mysql using the mysql client program, I see > that my table contains utf-8 data. Here are the environment settings: > > mysql> SHOW VARIABLES LIKE '%character%'; > [snip] > > However, when I access my model through the django shell, I have > problems: >

utf-8 encoding not working with mysql

2010-08-17 Thread adam
When I connect directly to mysql using the mysql client program, I see that my table contains utf-8 data. Here are the environment settings: mysql> SHOW VARIABLES LIKE '%character%'; +-- +-+ | Variable_name| Value

Re: UTF-8 encoding

2008-03-10 Thread Pete Crosier
gt; > I am using MySQL. How to select UTF-8 encoding for the CharFields  and   > TextFields in the models I create? > > Regards Ganesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

UTF-8 encoding

2008-03-09 Thread M.Ganesh
Hi All, I am using MySQL. How to select UTF-8 encoding for the CharFields and TextFields in the models I create? Regards Ganesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.