Japanese characters is garbled on Windows.

homepage Forums BridgePoint Development and Integrations Japanese characters is garbled on Windows.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7522
    kae-made
    Participant

    Hi BridgePoint developers,
    Please let me know how to resolve UNICODE character garbling problem.
    I use BridgePoint on Windows 11. I can write Japanese sentence in text editor but the sentence at the moment of saving becomes garbled.
    The xtuml file seems to be saved as not UTF8 but ANSI.
    I also tried BridgePoint run on WSL2 but I was unable to input or copy & paste Japanse characters.

    #7523
    cort
    Keymaster

    Navigate to Eclipse->Preferences->Workspace

    You will see a place to set the default encoding. Set it to UTF-8.

    #7524
    Shin Kuboaki
    Participant

    I set the following on BridgePoint for Windows:

    Eclipse-> Preferences-> Workspace
    Then default encoding. Set it to UTF-8.

    With this setting, I entered the class description using Japanese. When saved, the encoding of the’.xtuml’ file is MS932 (default encoding of Japanese Windows).
    From this, it looks like BridgePoint or Eclipse is not saving in UTF-8 when saving to a file. (Or when reading?)

    Next, I tried using Japanese for the class name.
    In this case, a folder with the Japanese class name was created in the folder of the class diagram package.
    After restarting BridgePoint with this setting, it appears as a blank class in the class diagram and Model Explore no longer shows this class in that package.

    #7526
    Shin Kuboaki
    Participant

    Ohta-san edited the source code of BridgePoint and built it to solve this issue, but it seems that the following error has occurred.

    Hi, I’m trying to build BridgePoint.
    I tried Debian 11.3, Ubuntu 20.04.4 LTS, and Ubuntu 18.04.6 LTS, but a build error happened at org.xtuml.bp.als.
    I also tried Ubuntu 20.04 environment in a Docker container and I confirmed that the same build error happens.

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (generate-ant) on project org.xtuml.bp.als: An Ant BuildException has occured: The following error occurred while executing this line:
    [ERROR] /root/git/bridgepoint/src/org.xtuml.bp.als/generate.xml:202: Warning: Could not find file /root/git/bridgepoint/src/org.xtuml.bp.als/gen/code_generation/ooaofooa.sql to copy.
    [ERROR] around Ant part …<ant antfile=”/root/git/bridgepoint/src/org.xtuml.bp.als/generate.xml” target=”nb_all”/>… @ 12:91 in /root/git/bridgepoint/src/org.xtuml.bp.als/target/antrun/build-main.xml

    I share my docker image as kaemade/bp-build-ubuntu:1.0.0 .
    Please try to solve the error by running it.

    $ sudo docker run –name test -it kaemade/bp-build-ubuntu:1.0.0
    # ~/git/bridgepoint/utilities/build/build_and_test_bpsh

    I also share my Dockerfile at https://github.com/kae-made/bridgepoint/blob/master/utilities/docker-for-build/Dockerfile
    You can create Docker image by yourself.

    $ sudo docker build -t bp-build-ubuntu -f Dockerfile .

    If there are some mistakes in the build environment setup, please let me know.

    #7527
    kae-made
    Participant

    Hi, kae-made is Hiroshi Ota’s account.
    My all build activities are done on Windows for Linux and Windows docker envrironment.
    I suspect that there are some version inconsistency associated with updating the library using.
    I don’t have Mac PC so I have no way to check if it works properly on Mac. Please try to build on latest Mac environment.

    #7528
    Shin Kuboaki
    Participant

    Trying to build on Intel Mac, I got the following error message:

    Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (generate-ant) on project org.xtuml.bp.als: An Ant BuildException has occured: The following error occurred while executing this line:
    [ERROR] /Users/kuboaki/git/bridgepoint/src/org.xtuml.bp.als/generate.xml:256: Unable to determine generated class
    [ERROR] around Ant part …<ant antfile=”/Users/kuboaki/git/bridgepoint/src/org.xtuml.bp.als/generate.xml” target=”nb_all”/>… @ 12:100 in /Users/kuboaki/git/bridgepoint/src/org.xtuml.bp.als/target/antrun/build-main.xml

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.