Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 谷歌云端点,希伯来语变成问号_Java_Google App Engine_Encoding_Utf 8_Google Cloud Endpoints - Fatal编程技术网

Java 谷歌云端点,希伯来语变成问号

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

我用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.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的处理有关。