Coder Social home page Coder Social logo

Comments (8)

tagomoris avatar tagomoris commented on July 28, 2024

「日本語」のエンコーディングは何でしょう?

from shib.

shibacow avatar shibacow commented on July 28, 2024

utf-8です。

from shib.

shibacow avatar shibacow commented on July 28, 2024

https://issues.apache.org/jira/browse/THRIFT-1679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661724#comment-13661724%20]

nodejsとthiftにバグがあったようです。修正までは出来ませんでした。

from shib.

tagomoris avatar tagomoris commented on July 28, 2024

It seems that this problem doesn't exists in thrift trunk (maybe incoming v0.10.x) code.

Here is self-patched branch: https://github.com/tagomoris/shib/tree/utf8_string
Can you test this? > @shibacow

from shib.

tagomoris avatar tagomoris commented on July 28, 2024

ping? > @shibacow

from shib.

shibacow avatar shibacow commented on July 28, 2024

レスポンス遅れてすいません。
結局node-thriftの最新版を使って回避しました。そちらだと文字化けが起こりませんでした)。
やり方としては、node-thriftを入れた後、ライブラリのpathをnode-thriftからthriftにシンボリックリンクを貼る方法で回避してしまいました。

そちらのブランチを試してみたのですが、日本語は表示されませんでした。
webでの表示と、examples/hive_client.jsで日本語を含むクエリーを投げましたが、本当はマッチするデータがあるのに、空配列が出てきました。
node-thirftで上手く動いているので、こちらはそれでいこうと考えております。

from shib.

tagomoris avatar tagomoris commented on July 28, 2024

node-thrift is this? https://npmjs.org/package/node-thrift
If so, I'll fix dependencies of shib with latest node-thrift.

from shib.

tagomoris avatar tagomoris commented on July 28, 2024

Dependency list updated with node-thrift, and some testtool code added.

from shib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.