tumblr / jumblr

Tumblr API v2 Java Client
Apache License 2.0
278 stars 105 forks source link

Can't accept other lanuage except English ? #25

Closed safetys123 closed 10 years ago

safetys123 commented 11 years ago

map.put("type", "text"); map.put("body", "body"); map.put("tags", "tags1, tag2, 日本語"); client.postCreate(client.user().getName(), map);

At this map, the body and the tags only accept english words ? if the body and tags contains other lanuage words, for example, Asia lanuage words,French lanuage words and Spanish lanuage, Run the above code, will appea a Exception. com.tumblr.jumblr.exceptions.JumblrException: Not Authorized You can try it.

codingjester commented 11 years ago

This probably has something to do with how we're signing multibyte characters.

safetys123 commented 11 years ago

How Can I sovle this problems

ÔÚ 2013-09-10 04:26:03£¬"John Bunting" notifications@github.com дµÀ£º

This probably has something to do with how we're signing multibyte characters.

¡ª Reply to this email directly or view it on GitHub.

seejohnrun commented 10 years ago

You're actually all good on this - just using the API slightly wrong. You should be using the TextPost class like so:

Blog blog = client.user().getBlogs().get(0); // select a blog
TextPost post = blog.newPost(TextPost.class);
post.setBody("body");
post.addTag("tags1");
post.addTag("tag2");
post.addTag("日本語");
post.save();