Problem while inserting character Ö using ODP.Net into oracle

Last post 06-17-2007 11:05 PM by Pankaj Deshnmukh. 5 replies.

Sort Posts:

  • Problem while inserting character Ö using ODP.Net into oracle

    06-10-2007, 8:46 PM

    Hi 

    I am facing problem while inserting string 'CH-FERBÖX_A_'. The character 'Ö' is getting converted into 'O' after insertion.The string is being  converted into ' CH-FERBOX_A_' after insertion.When I fire same insert statment using  sql plus , replacement of character from  'Ö' to 'O' did not happen.I am using ASP.Net 1.1.

    Actual String  : 'CH-FERBÖX_A_'

    Value in DB : ' CH-FERBOX_A_' after insertion

    does anyone know how to get around this problem ?

    Thanks in advance

     

     

    Filed under: ,
  • Re: Problem while inserting character Ö using ODP.Net into oracle

    06-11-2007, 10:37 AM
    • Member
      444 point Member
    • Dugald
    • Member since 05-07-2007, 2:51 PM
    • Raleigh, NC
    • Posts 85

     A. Don't use the umlaut?

    B. Can you use the html code (Ö) instead? 

  • Re: Problem while inserting character Ö using ODP.Net into oracle

    06-11-2007, 11:12 AM
    • Member
      510 point Member
    • jfmccarthy
    • Member since 10-04-2006, 4:18 PM
    • Oklahoma
    • Posts 95

    Check out this link

    http://builder.com.com/5100-6388-5319617.html

     

    Hope it helps.

    Life would be so much easier if we only had the source code.
  • Re: Problem while inserting character Ö using ODP.Net into oracle

    06-11-2007, 11:12 PM

    Thanks for quick reply.But even after using compose and unstr functions I could not able to insert character  Ö . Whenever I try to insert character from asp.net the character is being converted to O.

     

  • Re: Problem while inserting character Ö using ODP.Net into oracle

    06-13-2007, 3:15 PM
    • Member
      510 point Member
    • jfmccarthy
    • Member since 10-04-2006, 4:18 PM
    • Oklahoma
    • Posts 95

    I tried inserting from a web app and the character was inserted correctly.

    Imports System.Data.OracleClient

    --------------

    Dim cn As New OracleConnection("password=ps;user id=id;data source=ds")

    Dim cmd As New OracleCommand

    With cmd

    .CommandType = Data.CommandType.Text

    .Connection = cn

    .CommandText = "insert into assembly.production_goals" & vbNewLine & _

    " (system, section, key, value)" & vbNewLine & _

    "values" & vbNewLine & _

    " ('TEST', 'TEST', 'TEST', COMPOSE(UNISTR('U\0308, O\0097 o\0308, nai\0308ve, cafe\0301 with re\0301sume\0301.')) )"

    End With

    Dim da As New OracleDataAdapter

    da.SelectCommand = cmd

    cn.Open()

    Try

    cmd.ExecuteNonQuery()

    Catch ex As Exception

    End Try

    End Sub

    ----------------

    Db record key value:

    Ü, O¿ ö,  naïve,  café with résumé.

    Life would be so much easier if we only had the source code.
  • Re: Problem while inserting character Ö using ODP.Net into oracle

    06-17-2007, 11:05 PM

    It is still not working for me.I am just wondering if it is something related  with my oracle character set settings.

    By using compose and unistr I am not even able to insert values when I fired query directly from sqlDeveloper.

     

    Thanks

    Pankaj

     

     

     

Page 1 of 1 (6 items)