Menu

Some characters not displayed correctly in ANSI file

2024-05-11
2024-05-27
  • Darko Molnar

    Darko Molnar - 2024-05-11

    Hi,

    Since version 6.2.10, if subtitle file is ANSI, some characters 'č' 'Č' and 'ć' 'Ć' are not displayed correctly. Instead there are some 'strange' characters.
    I can not show which characters are displayed because I went back to version 6.2.9 where everything works and is displayed correctly.
    When same file is converted to UTF-8 everything is working correctly.

    I have Windows 10 Enterprise 22H2 with display language set to 'English' and all regional settings including keyboard are 'Croatian'.

     
    • Kameleon_

      Kameleon_ - 2024-05-12

      Since version 6.2.10, if subtitle file is ANSI, some characters 'č' 'Č' and 'ć' 'Ć' are not displayed correctly. Instead there are some 'strange' characters.
      I can not show which characters are displayed because I went back to version 6.2.9 where everything works and is displayed correctly.

      Is it possible for you to give me the subtitle ansi file?
      What was the value of 'Original charset' that you used (that defines how ansi characters will be translated into actual characters)?

      Thanks in advance.

       
  • Darko Molnar

    Darko Molnar - 2024-05-19

    ANSI (CP 1250) subtitle attached (complete file)
    First 6 lines with version 6.2.9 looks (correctly) like this:

    And with version 6.2.10 and 6.2.11 looks like this:

    Compare lines 3 (word 2) and 6 (words 1 and 3).

    Original charset in both versions (in main window) is always set to 'Default', but in 'Settings -> Charsets -> Original charset' is set to 'EastEurope' (so this is 'Default'), as it should be.

    EDIT:
    When in 6.2.11 'Original charset' (with loaded subtitle) is changed to 'EastEurope' those characters become displayed correctly.
    After exiting program and starting again with same setting (EastEurope) and same file, they are again displayed as in second screenshot.
    But if I change 'Original charset' to anything else and back to 'EastEurope' or to 'Default' they change to correctly displayed.

    Hope this will help you to find source of problem.

     

    Last edit: Darko Molnar 2024-05-19
    • Kameleon_

      Kameleon_ - 2024-05-20

      Thanks for the elaborate explanation. I will have a look tomorrow.

       
    • Kameleon_

      Kameleon_ - 2024-05-24

      If you say "starting again with the same setting" I think you mean starting Sws by double clicking the subtitle srt file?

       
    • Kameleon_

      Kameleon_ - 2024-05-25

      In attached version the problems should be solved.
      Could you check please? Thanks in advance.

       
  • Darko Molnar

    Darko Molnar - 2024-05-26

    Hi,
    In portable is missing 'SubtitleAPI\SubtitleAPI.dll', but I copied over all other existing files in my installation folder.
    I tested with few other files and with this version it seems that all those 'critical' characters are now displayed correctly.
    This 'bug' is solved.

    Thanks.

     

    Last edit: Darko Molnar 2024-05-26
    • Kameleon_

      Kameleon_ - 2024-05-26

      Thanks for the testing and positive news.

      In portable is missing 'SubtitleAPI\SubtitleAPI.dll', but I copied over all other existing files in my installation folder.

      Indeed, SubtitleAPI\SubtitleAPI.dll is not needed any longer. You did not get an error message I hope?

       
  • Darko Molnar

    Darko Molnar - 2024-05-26

    No error message, that file was just leftover in installed version, probably not removed at version upgrade.
    I left it as it was and it had no influence on program work.
    Now I know that it can be removed.
    Thanks for explanation.

    There is one another, not so important, problem with program ignoring some settings, existing for very long time, but I will make another bug report with complete explanation ASAP.

    This one is solved.

     

    Last edit: Darko Molnar 2024-05-26

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.