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. MySQL
  4. help with message: "Warning: mssql_query(): WARNING! Some character(s) could not be converted into client's character set." in php coversion script. [SOLVED]

help with message: "Warning: mssql_query(): WARNING! Some character(s) could not be converted into client's character set." in php coversion script. [SOLVED]

Scheduled Pinned Locked Moved MySQL
sql-serverhelpphpdatabasemysql
1 Posts 1 Posters 8 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.
  • C Offline
    C Offline
    cjoki
    wrote on last edited by
    #1

    Hi i am writing a small conversion script to move data from a mssql table to a mysql table. Both tables have the same names and same colum names. Data types are close in purpose. But when I run the script I get the warning above and I would like to fix this to get the full data. As I understand it the message is comming from the ms sql server on a windows machine and the target mysql is on a linux machine. Ideas? Nevermind, I figured it out with a bit more hunting. MSSQL adds an odd character encoding to the NVARCHAR (and other N-prefixed data types). My fix was to cast it to a varchar... select CAST(field as VARCHAR) as field from table

    Chris J www.redash.org

    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