realbasic-nug
[Top] [All Lists]

Re: How to get a TextEncoding object from a charset XML/HTML attribute

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: How to get a TextEncoding object from a charset XML/HTML attribute
From: Eric dLR <rblists@edlr.fr>
Date: Fri, 30 Jan 2009 19:20:36 +0000
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <FEA538A0-967B-4A0E-AB79-A2A15B5FCE39@edlr.fr>
References: <FEA538A0-967B-4A0E-AB79-A2A15B5FCE39@edlr.fr>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Le 30 janv. 09 à 16:19, Eric dLR a écrit :

How do I convert it to a TextEncoding object? TextEncodings.InternetName property is read-only.

Finally I wrote this:

  Dim InternetNames As New Dictionary
  Dim theLastIndex As Integer = Encodings.Count - 1

  For theIndex As Integer = 0 to theLastIndex
InternetNames.Value( Encodings.Item( theIndex ).internetName ) = theIndex
  Next

Then, I just need to read the dictionary to get the index of text encoding in the Encodings module.

Eric.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • Re: How to get a TextEncoding object from a charset XML/HTML attribute, Eric dLR <=