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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyjavaproperties-unicode-0.1.1.tar.gz
.
File metadata
- Download URL: pyjavaproperties-unicode-0.1.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0907dd52aafdcdcbceefd8c5655fd53293a38d40f94c748a2f8568edab3c059 |
|
MD5 | 9c300fd0da2f2415e8b68ee03ce7b29c |
|
BLAKE2b-256 | e51a04ddb674ed67f1808ece4f41f0131f166f9922a59568383938e1970ad205 |