Forum Discussion

DSB_IT_Support's avatar
DSB_IT_Support
Occasional Contributor
15 years ago

National character support using Maven plug-in on Unix

We are using soapUI 4.0 Pro and develop our tests on windows PC. We use Excel data sources contaning test data containing national (Danish) characters.
When these tests are executed using the Maven plug-in in our CI-environment (Unix) the national characters are not read correctly causing the tests to fail.
So the question: What can I do to force reading of data from the Excel sheets using the correct (UTF-8) characterset?
regards
Lars

6 Replies

  • Hi Lars,

    hmm.. this is odd.. The excel library uses the system locale when reading the file; does it differ between your two systems?

    regards,

    /Ole
    eviware.com
  • DSB_IT_Support's avatar
    DSB_IT_Support
    Occasional Contributor
    No I checked and the locale is also set to LANG=en_DK.UTF-8, which should be OK in my opinion.
  • DSB_IT_Support's avatar
    DSB_IT_Support
    Occasional Contributor
    Hi,
    We are using 3.6.1 of maven-soapui-pro-plugin.
    I run test suite both on my windows machine (Default locale: da_DK, platform encoding: Cp1252)
    and on Linux where locale was set to:
    LANG=da_DK
    LC_CTYPE="da_DK.Cp1252"
    LC_NUMERIC="da_DK.Cp1252"
    LC_TIME="da_DK.Cp1252"
    LC_COLLATE="da_DK.Cp1252"
    LC_MONETARY="da_DK.Cp1252"
    LC_MESSAGES="da_DK.Cp1252"
    LC_PAPER="da_DK.Cp1252"
    LC_NAME="da_DK.Cp1252"
    LC_ADDRESS="da_DK.Cp1252"
    LC_TELEPHONE="da_DK.Cp1252"
    LC_MEASUREMENT="da_DK.Cp1252"
    LC_IDENTIFICATION="da_DK.Cp1252"
    LC_ALL=da_DK.Cp1252

    When using "birkerød" as a test data in excel file, it is parsed correctly in windows environment but not on linux (running test suite from Jenkins)

    Best regards
    Davor
  • DSB_IT_Support's avatar
    DSB_IT_Support
    Occasional Contributor
    Issue is solved...
    After further investigation I found out that the problem was not in maven-soapui-pro-plugin but in Jenkins' maven plugin.
    So now I do not use Jenkins maven plug-in but start maven with shell script (after first changing locale to da_DK.cp1252).
    I do not like such work-around but it was very important for us to use Danish characters in our test data.

    Best regards
    Davor