problem with code page ,and display persian string on DB2


  • Hi ,I have a c# project , data base  db2 , I have a problem with some fileds ,that they contain persian strings (farsi).
    I save as my form with   unicode(with signature ) code page 65001
    if i search a  persian string it works ,but when I want to display it ,it was shown  like ?????
    and it is wrong.

    I do this  for my connection string :


    start ->program files->Ibm db2->command window ->db2set  db2codepage=1256

    but still I didn't  find good result.
    please help me.
    Sunday, June 28, 2009 5:15 AM

All replies

  • Hi,

    Are you writing code that shows unicode string on winform?
    Could you post the code getting string from the database?

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, June 30, 2009 2:47 AM
  • Hi Harry
    thank you for your reply .

    I just save as my form with encoding . I use this
    .net c#  ==>  open form -> file -> save as with encoding -> unicode (utf-8) with signature code page (65001)

    thank you

    Tuesday, June 30, 2009 7:16 AM