Skip to main content

A small wrapper around pyjavaproperties to add unicode support.

Project description

This is a tiny wrapper around the pyjavaproperties package that does unicode en- and decoding transparently.

The problem I tried to solve here is that Java Properties files only support ISO-8859-1 content. If you need unicode, you have to use something like native2ascii or propedit for Eclipse which converts content from unicode to ascii and stores it into the respective file. In Python, obviously, you want the actual unicode data and not the encoded version of the prop value and this is exactly what this here does.

To use it simply import the Properties class from the pyjavapropertiesu module instead of pyjavaproperties and use the getProperty method as before.

Please note, though, that the data within the internal dict in the Properties class is still encoded.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyjavaproperties-unicode-0.1.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page