Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem reading UTF-8 .ini files with BOM
Forum Updated to NodeBB v4.3 + New Features

Problem reading UTF-8 .ini files with BOM

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jonny.dee
    wrote on last edited by
    #1

    Hello,

    I've been hit by bug https://bugreports.qt-project.org/browse/QTBUG-23381 several times now. The bug has been reported for Qt 4.7.4 and is still present in 4.8.4. I wonder why no one considers this bug important enough. It's actually a show stopper if you allow people to edit a UTF-8 encoded .ini file which will be read by your application, because one has to make sure no UTF-8 BOM header is present. As soon as a user edits and saves such an .ini file on Windows (e.g. using Windows Notepad) chances are high the .ini file cannot be read correctly by the Qt application anymore.

    Is this really such a rare case?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jonny.dee
      wrote on last edited by
      #2

      This bug still did not get any attention. So I've added a "ZIP file":https://bugreports.qt-project.org/secure/attachment/32705/QTBUG-23381.zip containing code together with .ini file input samples revealing the bug (see "my comment":https://bugreports.qt-project.org/browse/QTBUG-23381?focusedCommentId=203794&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-203794 on this bug).

      Please please vote for the bug and rate this posting in order to be able to draw attention to it!!!

      Thanks :)

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        You need to assign it to somebody. Ask about on IRC who to assign it to, or go for module maintainer.

        (Z(:^

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jonny.dee
          wrote on last edited by
          #4

          [quote author="sierdzio" date="1369648041"]You need to assign it to somebody. Ask about on IRC who to assign it to, or go for module maintainer.[/quote]

          Thanks for your fast response!

          I did what you suggested and it worked, mentioned bug now is assigned to someone :)

          Thanks again!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved