Share

sqsh - Sybase isql replacement.

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Inserting special characters æäøöå

You are viewing a single message from this topic. View all messages.

  1. 2009-08-11 08:13:10 UTC
    Hi,

    I'm having problems inserting scandinavian special characters æ, ä, ø, ö and å into a table. I tried with both nvarchar(50) and varchar(50) but neither works.
    Sqsh is run from Ubuntu 9.04 server with da_DK.utf8, da_DK/da_DK.ISO-8859-1 locales installed, and the default character set is UTF8.
    I ran the following command from bash
    # sqsh -Jlatin1 -b -Sdbserver -Ddbname -Udbuser -Pdbpass -C "insert into xfer_log (xferid,logtext) values (1, 'æøåÆØÅ')"
    # sqsh -JANSI -b -Sdbserver -Ddbname -Udbuser -Pdbpass -C "insert into xfer_log (xferid,logtext) values (2, 'æøåÆØÅ')"
    # sqsh -JISO-8859-1 -b -Sdbserver -Ddbname -Udbuser -Pdbpass -C "insert into xfer_log (xferid,logtext) values (3, 'æøåÆØÅ')"
    The records in the DB table shows the familiar characters of a unicode characters inserted into a latin1 database or file æøåÆØÅ
    What should I do?
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.