Skip site navigation (1) Skip section navigation (2)

Unicode display in VB

From: Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr>
To: pgadmin-hackers(at)postgresql(dot)org
Cc: dpage(at)vale-housing(dot)co(dot)uk, pgsql-odbc(at)postgresql(dot)org
Subject: Unicode display in VB
Date: 2001-11-09 14:48:38
Message-ID: 4.2.0.58.20011109154221.00a3ecf0@pop.freesurf.fr (view raw or flat)
Thread:
Lists: pgadmin-hackerspgsql-odbc
Dear all,

I am still trying to figure out how to display Japanese text in pgAdmin2.

Microsoft Form Two objects and MS Hierarchical Flexgrid Control 6.0 both 
support Unicode display.
To verify, just create this form:

Private Sub Command1_Click()
         ' create a Unicode text file with Chinese character
         ' Dan1 and English character D.
         Dim a(0 To 5) As Byte
         a(0) = &HFF ' All Unicode string begin with &HFF and &HFE
         a(1) = &HFE
         a(2) = &H39 ' Dan1
         a(3) = &H4E
         a(4) = &H44
         a(5) = &H0
         Open "unicode.txt" For Binary As #1
         Put #1, , a
         Close #1

         Dim txtline As String

         ' you may need to change the path of the file
         Open "unicode.txt" For Binary As #1

         txtline = InputB(2, #1)  ' always FF FE, skip them
         txtline = InputB(4, #1)

         Close #1

         TextBox1.Text = txtline  ' display the string
         'MSHFlexGrid1.Text = txtline
End Sub

This will display one Chinese Glyph and the lettre 'D', provided that Arial 
Unicode font is installed.
I tried to link MSHFlexGrid1 to a data source, but I did not see any 
Japanese character.

Did anyone succeed in displaying Japanese character in MSHFlexGrid?

Best regards,
Jean-Michel POURE


Responses

pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2001-11-10 01:13:30
Subject: Re: [ODBC] Unicode display in VB
Previous:From: Jean-Michel POUREDate: 2001-11-09 12:30:36
Subject: ODBC & UTF-8

pgadmin-hackers by date

Next:From: Dave PageDate: 2001-11-09 15:23:16
Subject: Re: Microsoft Forms 2
Previous:From: Jean-Michel POUREDate: 2001-11-09 13:50:38
Subject: Microsoft Forms 2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group