Click here to Skip to main content
       

.NET Framework

 
QuestionRe: multiple records in crystal report visual basic 2010 PinprofessionalEddy Vluggen21-Feb-14 6:46 
AnswerRe: multiple records in crystal report visual basic 2010 PinmemberMember 1050621524-Feb-14 0:29 
GeneralRe: multiple records in crystal report visual basic 2010 PinprofessionalEddy Vluggen24-Feb-14 8:25 
GeneralRe: multiple records in crystal report visual basic 2010 PinmemberMember 1050621524-Feb-14 22:11 
AnswerRe: multiple records in crystal report visual basic 2010 Pinprotectorthatraja24-Feb-14 22:41 
GeneralRe: multiple records in crystal report visual basic 2010 PinmemberMember 1050621524-Feb-14 23:28 
GeneralRe: multiple records in crystal report visual basic 2010 Pinprotectorthatraja24-Feb-14 23:40 
QuestionVB.Net Text Encoding PinmemberMember 1061435020-Feb-14 23:00 
I have the following codes which works fine.
 
Dim strText As String = ("อาหามะ กาเจ")
Dim strData As String
Dim byteArray() As Byte
 
byteArray = Encoding.GetEncoding(874).GetBytes(strText)
'>> 874 is Thai Code Page

strData = Encoding.Default.GetString(byteArray)
'>> strData contains "ÍÒËÒÁÐ ¡Òà¨"
 

strText = ("عمر الحاج الحضرى")
byteArray = Encoding.GetEncoding(1256).GetBytes(strText)
'>> 1256 is Arabic Code Page

strData = Encoding.Default.GetString(byteArray)
'>> strData contains "ÚãÑ ÇáÍÇÌ ÇáÍÖÑì"
 
My problem is that the content strText will be read from a
database table field which could be in Thai or Arabic. How
can I determine to use the right copde page in the below VB
statement
 
Encoding.GetEncoding(1256).GetBytes(strText)
 
Would appreciate some can help.
AnswerRe: VB.Net Text Encoding PinprotectorRichard MacCutchan21-Feb-14 0:36 
AnswerRe: VB.Net Text Encoding PinprofessionalEddy Vluggen21-Feb-14 21:06 
QuestionMemory utilization of MemoryStream Pinmemberelix54520-Feb-14 9:18 
AnswerRe: Memory utilization of MemoryStream PinprotectorPete O'Hanlon20-Feb-14 9:35 
AnswerRe: Memory utilization of MemoryStream PinmvpDave Kreskowiak20-Feb-14 9:36 
GeneralRe: Memory utilization of MemoryStream Pinmemberelix54520-Feb-14 10:08 
GeneralRe: Memory utilization of MemoryStream PinmvpDave Kreskowiak20-Feb-14 13:11 
GeneralRe: Memory utilization of MemoryStream Pinmemberelix54520-Feb-14 14:25 
AnswerRe: Memory utilization of MemoryStream PinmemberJonB26-Feb-14 5:19 
QuestionGantt Chart PinmemberMember 1057034317-Feb-14 0:39 
QuestionASP.NET Membership PinprofessionalMeetmca16-Feb-14 18:17 
AnswerRe: ASP.NET Membership PinprotectorRichard MacCutchan16-Feb-14 22:26 
QuestionQuestion about VB and Databases PinmemberCaseLost14-Feb-14 17:05 
AnswerRe: Question about VB and Databases PinprofessionalEddy Vluggen15-Feb-14 23:33 
Questionsql query syntax in .net PinmemberMember 1050621512-Feb-14 3:52 
AnswerRe: sql query syntax in .net PinmvpDave Kreskowiak12-Feb-14 4:30 
AnswerRe: sql query syntax in .net Pinmvpthatraja12-Feb-14 4:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 12 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid