fix python and java API's Chinese encoding problems

This commit is contained in:
suxunbin 2019-06-19 13:47:04 +08:00
parent 10adc7b6f6
commit 9537b9db92
3 changed files with 6 additions and 4 deletions

View File

@ -1,13 +1,13 @@
all: POSTexample.class GETexample.class Benchmark.class
Benchmark.class: Benchmark.java
javac -encoding gbk -cp ../lib/GstoreJavaAPI.jar Benchmark.java
javac -encoding utf8 -cp ../lib/GstoreJavaAPI.jar Benchmark.java
POSTexample.class: POSTexample.java
javac -encoding gbk -cp ../lib/GstoreJavaAPI.jar POSTexample.java
javac -encoding utf8 -cp ../lib/GstoreJavaAPI.jar POSTexample.java
GETexample.class: GETexample.java
javac -encoding gbk -cp ../lib/GstoreJavaAPI.jar GETexample.java
javac -encoding utf8 -cp ../lib/GstoreJavaAPI.jar GETexample.java
.PHONY: clean POST-example GET-example Benchmark

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
"""
# Filename: GET-example.py
# Author: suxunbin
@ -77,4 +78,4 @@ print(res);
res = gc.getCoreVersion()
print(res)
res = gc.getAPIVersion()
print(res)
print(res)

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
"""
# Filename: POST-example.py
# Author: suxunbin