[groonga-dev,03704] Re: コマンドの日本語に関して

Back to archive index

Hiroyuki Sato hiroy****@gmail*****
2015年 11月 30日 (月) 12:16:23 JST


佐藤です。

コマンドプロンプトでコードページをUTF-8にて日本語の表示はできました。
でも相変わらずgroongaで日本語の入力はできません。

現状Windows上のGroongaで日本語を含んだコマンドを実行する場合
Shift_JISで利用するというのが回避策のようです。

UTF-8不具合の再現手順

問題点

Windows上でgroonga.exeをUTF-8の環境で使うと、日本語入力ができない。
日本語入力をすると、groongaのコマンドが終了してしまう。

1, フォントの設定

  http://qiita.com/yui/items/86a455f948a3e1c0ef97

2, コマンドプロンプト起動

3, コードページ変更

> chcp65001
Active code page: 65001

3, groonga起動
  C:\Program Files\Groonga\bin>groonga.exe -n test2.db

4, テーブル作成
  > table_create --name Site --flags TABLE_HASH_KEY --key_type ShortText
  [[0,1448852689.869,0.0],true]

5, カラム作成
  > column_create --table Site --name title --type ShortText
  [[0,1448852701.622,0.0],true]


6, データロード
  > load --table Site
  > [{"_key":"http://example.org/","title":"日本語1"},{"_key":"
http://example.net/","
  title":"日本語2"},{"_key":"http://example.com/","title":"日本語3"}]

  C:\Program Files\Groonga\bin>

2015年11月28日(土) 18:03 Kouhei Sutou <kou****@clear*****>:

> 須藤です。
>
> In <CA+Tq-Ro=LG8jmekfsw0=w3QTw****@mail*****>
>   "[groonga-dev,03691] Re: コマンドの日本語に関して" on Fri, 27 Nov 2015 11:41:19
> +0000,
>   Hiroyuki Sato <hiroy****@gmail*****> wrote:
>
> > 普段Windowsは使わないのですが、ちょっと試してみました。
> > (須藤さんあまりWindows詳しくなさそうなので..)
>
> ありがとうございます!
> その通りなのでとても助かります!
>
>
> --
> 須藤 功平 <kou****@clear*****>
> 株式会社クリアコード <http://www.clear-code.com/>
>
> Groongaベースの全文検索システムを総合サポート:
>   http://groonga.org/ja/support/
> パッチ採用 - プログラミングが楽しい人向けの採用プロセス:
>   http://www.clear-code.com/recruitment/
> コードリーダー育成支援 - 自然とリーダブルコードを書くチームへ:
>   http://www.clear-code.com/services/code-reader/
>
> _______________________________________________
> groonga-dev mailing list
> groon****@lists*****
> http://lists.osdn.me/mailman/listinfo/groonga-dev
>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



groonga-dev メーリングリストの案内
Back to archive index