我用于CloudBoost
Android中的应用程序。所以,我找不到放入UTF-8 string
CloudBoost 的方法。这是示例:
CloudObject obj = new CloudObject("Restaurant");
try
{
obj.set("Type", "Food");
obj.set("Address", "Huỳnh Văn Bánh");
obj.set("Name", "Phú Nhuận Food");
obj.save(new CloudObjectCallback() {
@Override
public void done(CloudObject cloudObject, CloudException e)
throws CloudException {
if (cloudObject != null)
Toast.makeText(MainActivity.this, "Success", Toast.LENGTH_LONG).show();
if (e != null)
{
Toast.makeText(MainActivity.this, "Error", Toast.LENGTH_LONG).show();
}
}});
}
catch (CloudException ex){}