+ Reply to Thread
Results 1 to 6 of 6

Thread: How to read japanese characters in DBF

  1. #1
    gml check
    Join Date
    Jan 2011
    Posts
    33
    Points
    0
    Answers Provided
    0


    0

    Default How to read japanese characters in DBF

    I am not sure if the Forum is correct but I am stuck with reading a dbf but the data are garbled.
    I successfully created a shp,shx and dbf compatible with esri. Then now, I am creating a java application that reads the 3 files for further processing.

    please guide me on how to read a dbf file correctly.

    Thanks in advance.

  2. #2
    Bruce Harold

    Join Date
    Oct 2009
    Posts
    414
    Points
    75
    Answers Provided
    10


    0

    Default Re: How to read japanese characters in DBF

    Hi

    If your DBF file is part of a shapefile, then you will need a codepage file to correctly interpret any Unicode strings. If your shapefile root name is "xyz" then create a text file xyz.cpg with the contents "UTF-8" (not quoted) and hopefully that will work for you.

    Regards
    Bruce H.
    ESRI Redlands

  3. #3
    gml check
    Join Date
    Jan 2011
    Posts
    33
    Points
    0
    Answers Provided
    0


    0

    Default Re: How to read japanese characters in DBF

    hi bruce_harold,

    Thanks a lot. but I can't understand when the .cpg file reads.
    The java app that I am working is an internal app that convert the shape(shp,shx,dbf) to gml3.2.1.

  4. #4
    Bruce Harold

    Join Date
    Oct 2009
    Posts
    414
    Points
    75
    Answers Provided
    10


    0

    Default Re: How to read japanese characters in DBF

    Hi

    Only ESRI applications or SDK's will understand the CPG file, you may have to handle the Unicode encoding yourself in another environment.

    Regards
    Bruce H.
    ESRI Redlands

  5. #5
    gml check
    Join Date
    Jan 2011
    Posts
    33
    Points
    0
    Answers Provided
    0


    0

    Default Re: How to read japanese characters in DBF

    Thanks a lot..
    I just thinking that there is an available api from esri to read the dbf correctly.

    With appreciation

  6. #6
    V Stuart Foote

    Join Date
    Apr 2010
    Posts
    1,728
    Points
    595
    Answers Provided
    65


    0

    Default Re: How to read japanese characters in DBF

    In addition to Bruce's response, please see this similar thread regards your question.

    http://forums.arcgis.com/threads/216...0634#post70634

    Stuart

    If a post is helpful, or answers your question, or simply annoys you because it is WRONG please use the voting tools on the right side to help identify quality content on the Forum.

    Systems Analyst - Geological Sciences
    The University of Texas at San Antonio
    Classroom & Research support
    Adobe, AutoDesk, ESRI, ERDAS, ESI, Exelis Visual, IHS, Mathworks, Oracle, SAS Inst, Schlumberger, Seismic Micro-Technology, Trimble, Wolfram

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts