Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 28, 2019. It is now read-only.

zerok/pyjavaproperties-unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A small wrapper around pyjavaproperties to support unicode.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages