← 输入框|github.com|刷新
Skip to content

Let pick a charset when generating code coverage html report #775

Closed

Description

@alesana-san

In version 3.1.2 there's a hardcoded value UTF8 for this kind of report. In case if you have some stuff in a different encoding (ex. Windows-1251), then all national symbols become unreadable

Activity

  1. jgebal commented on Nov 3, 2018

    @jgebal
    Member

    Can you provide an example with following information:

    • Database NLS character set
    • session NLS character set

    We have a solution for XML reports already so i think the same should work for HTML (when we add it).

    I guess that we should give the report back to user in user NLS character set.
    To confitm that thos would work, can you set your session NLS to UTF8 ans see if the saved report shows proper characters in browser?

  2. jgebal commented on Nov 6, 2018

    @jgebal
    Member

    @alesana-san
    Can you let me know what is your DB character set?

  3. alesana-san commented on Nov 6, 2018

    @alesana-san
    Author

    @jgebal
    Sorry for being late, will try described steps in a couple of days.
    DB charset is CL8ISO8859P5
    Actually I don't know if my case counts because I ran ut.run and then saved the output from PL/SQL Developer to file. Maybe source code was affected somehow during the saving process.

  4. alesana-san commented on Nov 7, 2018

    @alesana-san
    Author

    @jgebal
    Finally made a report using CLI and everything was OK. CLI put this line:

    So I guess the issue can be closed.

  5. jgebal commented on Nov 7, 2018

    @jgebal
    Member

    @pesse
    Is cli replacing / adding charset to html report automatically? I thought it was to be provided from framework.

  6. pesse commented on Nov 8, 2018

    @pesse
    Member

    CLI is providing charset based on Java locale (not sure - have to verify). Framework is not necessarily able to auto-detect the charset needed.

  7. jgebal commented on Nov 18, 2018

    @jgebal
    Member

    Checked. Client encoding is already passed to HTML coverage report when client application provides encoding.

    Will update documentation to mention character-set setting.

  8. added this to the v3.1.3 milestone on Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions