LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default Read unicode (Asian Languages) from Excel spreadsheet

Hi,

I guess it is a common problem when read some DBCS value from Excel
spreadsheet but got question marks.
Following are my code
-----------------------------------------------------------------------------------
<%
Session.CodePage=65001
response.charset="UTF-8"
%
<HTML
<HEAD
<META http-equiv="Content-Type" content="text/html; charset=utf-8"
</HEAD
<BODY
<%
'Create a connection
Set oConn = Server.CreateObject("ADODB.Connection")
strConn = "Driver={Microsoft Excel Driver (*.xls)}; " &_
"DBQ=<someXLS file;" 'How to can set codepage or characterset here?
oConn.Open strConn

strCmd = "SELECT * from `<some Name defined in Excel'"

'Create a recordset
Set oRS = Server.CreateObject("ADODB.Recordset")

oRS.Open strCmd, oConn

'Output conects of Excel
while not oRS.EOF
for each item in oRs.Fields
response.write item.Name & "==" & item.value & "<br"
Next
ORs.moveNext
Wend
set ORs= nothing
set oConn = nothing
%
</BODY
</HTML
-------------------------------------------------------------------------------------

For the cloumn that include some Asian languages like Chinese, Japanese and
Korean, will display question marks ??? at this page.

Is it any way we can set codepage or characterset in the connectionstring?

Regadrs,

Frank






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Character Path Limit for Asian Characters Outlook User 2009 Excel Discussion (Misc queries) 0 May 8th 09 07:33 AM
Saving Spreadsheet to Unicode extra quotation marks [email protected] Excel Discussion (Misc queries) 0 January 26th 06 03:19 PM
Saving Spreadsheet to Unicode extra quotation marks [email protected] Excel Discussion (Misc queries) 0 January 26th 06 03:18 PM
How do you display Greek and Russian languages in excel? Mark Hayden Excel Discussion (Misc queries) 1 August 1st 05 08:06 AM
how to read excel spreadsheet into database (DB2) mairhtin o'feannag Excel Programming 1 May 31st 04 01:04 AM


All times are GMT +1. The time now is 11:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"