realbasic-nug
[Top] [All Lists]

RB text encoding support

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: RB text encoding support
From: Joe Huber <joehuber at talasoft dot com>
Date: Sat, 29 Mar 2008 12:16:59 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <226027DE-9E67-4701-90AD-12E8F3383CF6 at rbclass dot com> <A652AB13-FCF7-4D95-B6B1-5EC6EC3E84DE at inspiringapps dot com> <3E14F3DA-1A0F-47A7-A23A-5561C8EFDFC3 at rbclass dot com> <A0720DC7-6E68-4825-B1E7-06FA772B07E7 at inspiringapps dot com> <A08DAFF0-4131-4C31-BE88-965126CC576F at rbclass dot com> <09004169-C758-401C-BF6E-6FB615336097 at rbclass dot com> <1BD9DBC6-83AA-42FF-912E-010229927261 at sentman dot com>
At 1:10 PM -0400 3/29/08, James Sentman wrote:
>I understand and even acknowledge the necessity of 
>text encoding, but despise is not too strong a word for how I feel
>towards the implementation we're using.

I actually like RB's Text Encoding support. It does almost everything 
for you automatically, AS LONG AS THERE'S A CORRECT TEXT ENCODING 
ASSIGNED TO EACH STRING. You're at risk of getting a string without a 
text encoding whenever you get a string from outside your program. eg 
>from a file, socket, serial, database etc.

And you also get a string without an encoding from functions that 
return binary data like MD5. Which is OK, except that RB will still 
treat them as text without complaining. IMHO That's a major oversight.

RB should raise an exception if you perform a text function on a 
string that doesn't have a text encoding. If you'd like RB to help 
debug your latent text encoding issues sign onto these FRs.

  Text operations on strings with no encoding should Raise Exception
  http://www.realsoftware.com/feedback/viewreport.php?reportid=rcvdscun

  Debugger should signal strings of unknown encoding
  http://www.realsoftware.com/feedback/viewreport.php?reportid=rbsbzeyc

Regards,
Joe Huber
_______________________________________________
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>