Java 谷歌云端点,希伯来语变成问号
我用java编写了这个简单的API:Java 谷歌云端点,希伯来语变成问号,java,google-app-engine,encoding,utf-8,google-cloud-endpoints,Java,Google App Engine,Encoding,Utf 8,Google Cloud Endpoints,我用java编写了这个简单的API: @Entity class Bean { @Id Long id; //auto-generated String name; // getters and setters } @Api(name = "myApi", version = "v1", namespace = @ApiNamespace( ownerDomain = "helloworld.example.co
@Entity
class Bean
{
@Id Long id; //auto-generated
String name;
// getters and setters
}
@Api(name = "myApi",
version = "v1",
namespace = @ApiNamespace(
ownerDomain = "helloworld.example.com",
ownerName = "helloworld.example.com",
packagePath=""))
public class MyAPI {
public Slides update(Bean b) {
OfyService.ofy().save().entity(b).now();
return slides;
}
}
当我使用带有此字符串的api资源管理器执行此端点时,它会保存并返回�����代码>
我还使用硬编码值检查了保存机制是否存在问题,即使我将值记录到控制台而不是保存它,它也会这样做
我尝试过的事情:
中的
- 一种自定义过滤器,用于在主机上设置
utf-8
请求和响应servlet
如果可以,这会很有帮助。包括API Explorer链接也可能有助于诊断问题����� 出现?它可能与浏览器或终端及其对utf-8的处理有关。如果可以,它将非常有用。包括API Explorer链接也可能有助于诊断问题����� 出现?它可能与浏览器或终端及其对utf-8的处理有关。