Russian characters are showing up as "???"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iBar
    New Member
    • Aug 2012
    • 3

    Russian characters are showing up as "???"

    I am reading a record from an Oracle database. The Russian names are showing up as "???"

    <%
    Response.Conten tType = "text/html"
    Response.AddHea der "Content-Type", "text/html;charset=UT F-8"
    Response.CodePa ge = 65001
    Response.CharSe t = "UTF-8"

    Dim objConn
    Dim rs
    Set objConn = Server.CreateOb ject("ADODB.Con nection")

    objConn.Open "dsn=orclds n; uid=admin; pwd=password"

    Set rs = Server.CreateOb ject("ADODB.Rec ordset")
    sqlstr="SELECT e.username, e.fname, e.lname, e.email eemail, m.username, m.email memail FROM tableName e INNER JOIN tableName m ON e.manager_id=m. id WHERE e.username='K57 00MAV';"

    Set rs = objConn.Execute (sqlstr)

    if rs.eof then
    response.write "Username does not exist. Please access this link from a course."
    response.end
    else
    rs.MoveFirst
    While Not rs.EOF
    e_name = Server.URLencod e(rs.fields("fn ame") & " " & rs.fields("lnam e"))
    e_email = rs.fields("eema il")
    response.write e_name
    rs.MoveNext
    Wend
    end if
    objConn.Close
    Set objConn = Nothing
    %>
  • iBar
    New Member
    • Aug 2012
    • 3

    #2
    Enabling the "Force SQL_WCHAR Support" in the Oracle ODBC Driver Configuration fixed the issue.

    Thanks

    Comment

    • ariful alam
      New Member
      • Jan 2011
      • 185

      #3
      First check at Oracle using query that the Russian characters show perfectly or not. if there those characters not show perfectly, than check the field data type is set to Unicode supported or not. if not fix it. moreover if you used oracle query window to add record, those will also show data like ???. use form/server side web page to insert data.

      Hope it works.

      Comment

      • iBar
        New Member
        • Aug 2012
        • 3

        #4
        Hi Ariful,
        Thanks. As mentioned in my previous post, this issue is resolved. I had to enable the "Force SQL_WCHAR Support" for the DSN settings.

        Comment

        Working...