There are several JS based sanity checks out on the web that you can adopt to AS.
One important factor is preserving UTF8 once you have it in Flex. All data transactions as well, should be UTF8. For example: your server-side script (bi-directionally) for UTF8 And your database should be setup for UTF8. If you are using PHP you can add iconv_set_encoding("input_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "UTF-8"); iconv_set_encoding("internal_encoding", "UTF-8"); to the beginning of your scripts..... Alternatively, you can use mySQL_query("SET NAMES UTF8") in your server-side scripts. HTH Body Works Studio wrote: > > > Hello all, > > I wanted to know is it possible for flex to determine what encoding > the text being entered in to a textInput, textArea, or HTMLTextInput > is using. Thr concern is a user copies and pastes in text from say a > Microsoft product. > > The reason I ask is we have UTF8 encoding for the project, and > sometimes text appears as a black rectangle. Ideally I would like to > run a function at focusOut that would confirm .text. > > Thanks for your time > > Jeff > > -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918