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 details)

Uploaded Source

File details

Details for the file pyjavaproperties-unicode-0.1.1.tar.gz.

File metadata

File hashes

Hashes for pyjavaproperties-unicode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f0907dd52aafdcdcbceefd8c5655fd53293a38d40f94c748a2f8568edab3c059
MD5 9c300fd0da2f2415e8b68ee03ce7b29c
BLAKE2b-256 e51a04ddb674ed67f1808ece4f41f0131f166f9922a59568383938e1970ad205

See more details on using hashes here.

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