Series of question marks returned by Tikal querying a Simplified Chinese Pensieve TM

Issue #254 resolved
Former user created an issue

Original [issue 254](https://code.google.com/p/okapi/issues/detail?id=254) created by polytrans2... on 2012-07-18T00:25:04.000Z:

What steps will reproduce the problem?

tikal -sl en-us -tl zh-cn -opt 30:2 -q "Sample cover note" -pen "c:
myTm\_US-SCH.pentm"

What is the expected output?

------------------------------------------------------------------------------- Okapi Tikal - Localization Toolset Version: 2.0.17 -------------------------------------------------------------------------------

From Pensieve TM (en-us->zh-cn)

Threshold=30, Maximum hits=2 score: 100, origin: 'myTm\_US-SCH.pentm' Source: "Sample cover note" Target: "送文说明样本"

What do you see instead? ------------------------------------------------------------------------------- Okapi Tikal - Localization Toolset Version: 2.0.17 -------------------------------------------------------------------------------

From Pensieve TM (en-us->zh-cn)

Threshold=30, Maximum hits=2 score: 100, origin: 'myTm\_US-SCH.pentm' Source: "Sample cover note" Target: "??????"

What version of the product are you using? On what operating system? Rainbow: 6.0.17 + Tikal: 2.0.17 + Windows 7 Pro 65bit (Simplified Chinese)

Please provide any additional information below. If you like, you can also try recreating the Pensieve TM by using the TMX file I have included in the package.

Thanks!

Wei Jiang

Comments (2)

  1. Former user Account Deleted

    Comment [2.](https://code.google.com/p/okapi/issues/detail?id=254#c2) originally posted by @ysavourel on 2012-07-18T05:09:12.000Z:

    Detecting the proper encoding to use for Tikal depends on OS and languages, and is too error-prone to be always correct. So I've added support for the user to override Tikal's guess. The new .Tikal configuration file (located in the user's home folder (e.g. C:
    Users
    Username under Windows 7) can have an entry:

    displayEncoding=javaEncodingName

    where javaEncodingName is the name of the encoding to use by Tikal to output on the console.

    You can use the DOS command chcp to see the code page used and set the Tikal encoding to match it. As long as the DOS fonts have support for the displayed characters, the text should display properly.

    I have not tested this for Chinese text on a machine with Chine settings. Hopefully this should work.

    This fix should be in the snapshot in about 1 h from now (http://okapi.opentag.com/snapshots)

    -yves

  2. Log in to comment