473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Unicode Support for ConfigObj (config file reader) Now in SVN

Hello All,

I've added (optional) unicode support for ConfigObj. This is now
available from SVN.

You can specify an encoding to decode the config file on reading. This
maps to an encoding attribute on the ConfigObj instance that is also
used for writing (and can be changed).

You can find it in the SVN repository at :
https://svn.rest2web.python-hosting....4/pythonutils/

For details of the unicode support, read my blog entry at :
http://www.voidspace.org.uk/python/w..._28.shtml#e204

This seems to work fine on the files I've tested it with, but unicode
support is hard to get completely right. I'd appreciate it if anyone
coul;d check it out and try to break it. :-)

There are two remaining questions before I do a beta release. Both
relate to the handling of BOM. Again see the blog.

Comments/opinions sought.

All the best,
Fuzzyman
http://www.voidspace.org.uk/python/configobj.html

Jan 31 '06 #1
0 1098

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fuzzyman | last post by:
A few functions I'm 'making available' (FWIW) and also a new project I'm starting.... http://www.voidspace.org.uk/atlantibots/pythonutils.html Slight updates to ConfigObj and StandOut (simple...
4
by: Fuzzyman | last post by:
There have been a couple of config file 'systems' announced recently, that focus on building more powerful and complex configuration files. ConfigObj is a module to enable you to much more *simply*...
10
by: Michael Foord | last post by:
I'm trying to become 'unicode-aware'... *sigh*. What's that quote - 'a native speaker of ascii will never learn to speak unicode like a native'. The trouble is I think I've been a native speaker of...
6
by: Chris | last post by:
hi, to convert excel files via csv to xml or whatever I frequently use the csv module which is really nice for quick scripts. problem are of course non ascii characters like german umlauts, EURO...
3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
32
by: Wolfgang Draxinger | last post by:
I understand that it is perfectly possible to store UTF-8 strings in a std::string, however doing so can cause some implicaions. E.g. you can't count the amount of characters by length() | size()....
10
by: Larry Hastings | last post by:
I'm an indie shareware Windows game developer. In indie shareware game development, download size is terribly important; conventional wisdom holds that--even today--your download should be 5MB or...
1
by: Bruce | last post by:
I assume that you know the module configobj. I use it like this: I have a config_file : ] a = 1 b = 2 ] a = 3 b = 1
3
by: =?Utf-8?B?QWxleGFuZGVy?= | last post by:
Hi! I don't know why, but I want to read a file, change some of the content, and want to write this new content in another file. The problem is, that it contains unicode text. My code is: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.