Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Issue in put function #8

Closed
druidamix opened this issue Jun 20, 2014 · 2 comments
Closed

Issue in put function #8

druidamix opened this issue Jun 20, 2014 · 2 comments

Comments

@druidamix
Copy link

Hi,

To make it work I had to put UTF-8 in value.getBytes, since in my language I use accents. If the charsetname is not defined the result string of getbytes can be chopped

Cheers.

private void put(String key, String value, Map<String, ? extends Serializable> annotations)
        throws
        IOException {
    OutputStream cos = null;
    try {
        cos = openStream(key, annotations);
        cos.write(value.getBytes(HTTP.UTF_8));
    } finally {
        if (cos != null)
            cos.close();
    }

}
@anupcowkur
Copy link
Owner

The default CharSet used by Android is UTF-8 so this shouldn't be a problem.

@druidamix
Copy link
Author

You are right, I'll check it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants