/[gnue]/gnue-common/src/datasources/drivers/appserver/appserver/Driver.py
ViewVC logotype

Diff of /gnue-common/src/datasources/drivers/appserver/appserver/Driver.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by siesel, Tue Oct 7 21:38:15 2003 UTC revision 1.20 by siesel, Thu Oct 9 21:27:49 2003 UTC
# Line 133  class Appserver_ListCursor: Line 133  class Appserver_ListCursor:
133                    
134          # convert Strings to unicode          # convert Strings to unicode
135          if type(value) == types.StringType:          if type(value) == types.StringType:
136            value = value.decode('utf-8')            value = unicode(value,'utf-8')
137    
138          # recode unicode strings to standart encoding          # recode unicode strings to standart encoding
139          if (type(value) == types.UnicodeType) and \          if (type(value) == types.UnicodeType) and \
# Line 179  class Appserver_UpdateCursor: Line 179  class Appserver_UpdateCursor:
179        value=fieldDict[key]        value=fieldDict[key]
180        if type(value) == types.StringType:        if type(value) == types.StringType:
181          if not self._dataCon._unicodeMode:          if not self._dataCon._unicodeMode:
182            fieldDict[key] = value.decode(gConfig('textEncoding')).encode('utf-8')            fieldDict[key] = unicode(value,gConfig('textEncoding')).encode('utf-8')
183          else:          else:
184            fieldDict[key] = value.encode('utf-8')            fieldDict[key] = value.encode('utf-8')
185                

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26