Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Ready to give up on MySQL - is PostgreSQL better?

Ready to give up on MySQL - is PostgreSQL better?

Scheduled Pinned Locked Moved Database
helpquestionmysqlpostgresql
4 Posts 2 Posters 0 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.
  • W Offline
    W Offline
    Wombaticus
    wrote on last edited by
    #1

    I am sick to the back teeth of encoding issues with MySQL. I have Googled the issue and tried every suggestion I can find, and am still plagued with insert errors such as:

    ERROR [HY000] [MySQL][ODBC 5.1 Driver][mysqld-5.5.18]Incorrect string value: '\xEF\x82\xA7\x09Se...' for column '[column name]' at row 1

    Please.. don't bother suggesting ways round this, I give up on it. My question, to anyone else who has experienced this, is simply this: does PostgreSQL suffer this same issue, or at least have a solution that works?

    J 1 Reply Last reply
    0
    • W Wombaticus

      I am sick to the back teeth of encoding issues with MySQL. I have Googled the issue and tried every suggestion I can find, and am still plagued with insert errors such as:

      ERROR [HY000] [MySQL][ODBC 5.1 Driver][mysqld-5.5.18]Incorrect string value: '\xEF\x82\xA7\x09Se...' for column '[column name]' at row 1

      Please.. don't bother suggesting ways round this, I give up on it. My question, to anyone else who has experienced this, is simply this: does PostgreSQL suffer this same issue, or at least have a solution that works?

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #2

      It will have different issues. Your best bet is to make sure you install it to use Unicode. But watch out, PostGreSQL uses UTF8 while dotnet uses UTF16 internally. So you might still encounter odd issues. MySQL supports UTF16 from version 5.5 IIRC. Why do you use odbc instead of Connector/NET?

      Wrong is evil and must be defeated. - Jeff Ello[^]

      W 1 Reply Last reply
      0
      • J Jorgen Andersson

        It will have different issues. Your best bet is to make sure you install it to use Unicode. But watch out, PostGreSQL uses UTF8 while dotnet uses UTF16 internally. So you might still encounter odd issues. MySQL supports UTF16 from version 5.5 IIRC. Why do you use odbc instead of Connector/NET?

        Wrong is evil and must be defeated. - Jeff Ello[^]

        W Offline
        W Offline
        Wombaticus
        wrote on last edited by
        #3

        It was installed with utf8_geberal_ci as the default. With the later versions of MySQL supporting utf8mb4_general_ci I've tried that too - but to no avail. Why ODBC? Habit, I guess. Would Connector/NET make a difference?

        J 1 Reply Last reply
        0
        • W Wombaticus

          It was installed with utf8_geberal_ci as the default. With the later versions of MySQL supporting utf8mb4_general_ci I've tried that too - but to no avail. Why ODBC? Habit, I guess. Would Connector/NET make a difference?

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #4

          Wombaticus wrote:

          Would Connector/NET make a difference?

          Mostly performance, and a lot of it. Have you read this[^]?

          Wrong is evil and must be defeated. - Jeff Ello[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups