ExternalInterface and Text Encoding

Hi there:
We're using ExternalInterface to pass data from the Flash
player (in this case, an ActiveX control) into a SWF, and we're
noticing that Unicode characters (e.g., é) are getting mangled
on the way in (e.g., é). Given there's no room for an
XML encoding declaration on the inbound ExternalInterface call
(we're not passing XML as content -- just using XML to declare the
function and parameter names and values), is there property that
needs to be set on the COM object to make sure string data gets
handled as Unicode? Or is there something that needs to be done in
ActionScript to handle them thusly?
Thanks in advance -- hope this makes sense and any help would
be greatly appreciated.
Chris

I would do the values in their html special characters code.
Like isntead of "&" its "&"
There's a list here:
http://www.tntluoma.com/sidebars/codes/
Flex will recognize &, © etc.

Similar Messages

  • Data sets and text encoding problem

    I have a problem when trying to import french text variables into my data sets (for automated generation of lower thirds). I can not get PS to display french special characters correct. all 'accented' As and Es etc. display as weird text strings, just like your browser running on the wrong text encoder.
    How do I get PS to interpret the data sets right? Any idea?
    thanx
    Gref
    ( PS CS6 (13.0.1), Mac Pro running on OS X 10.7.3)

    Thanx Bill.
    Unfortunately I cannot change the font as it is corporate. It has all the characters I need, though.
    Did I mention, that I have to generate french AND german subs? No.
    Well I tackled the german versions by processing the textfiles I get with textwrangler saving them as UTF-16. That worked with the german versions.
    Unfortunately I ran into 2 other problems now:
    First problem:
    The data set consists of 7 names and their respective functions. This processes perfectly in german (as I thought to this point) but in the french version it processes perfectly for the first 4 data sets while the fitfth has the right name but the function variable now displays the 5th function AND all the rest of the names and functions. I can not get these data sets displayed seperately. Bummer.
    But even more annoying…
    Second problem:
    When I now import my perfect german lower thirds into Avid I seem to loose my alpha information.
    Avid is supereasy to use with alpha: you have 3 choices: inverted (which is the usual way of importing) having black in the alpha transparent. normal - white transparent or ignore - no transparency.
    Importing 'inverted' alpha always worked (I use Avid for about 15 years now). but these processed PSDs don't. No alpha.
    So I tried to assign an alpha channel via Actions to these files. Now Avid seems to discard the layers completely leaving me with white text where it should be black. The PSDs have black character text layers but in Avid the characters are white. It seems like AVID just renders the white pixels of the alpha channel.
    Assigning the Alpha is no option anyway, as the whole process should make the generation of these lower third EASIER and faster for the person that has to make every lower third by hand by now.
    All of this can be boiled down to one word: ARGH!

  • Safari not honoring text encoding settings

    I'm trying to track down a problem I'm having with Safari Version 2.0.3 (417.9.2) and text encoding. Unfortunately I believe it had something to do with SafariStand, and I somehow can't fully remove it. I have removed SafariStand, SIMBL, and trashed Safari's plist to no avail.
    The problem is no matter what text encoding I select from Preferences | Appearance, it will not change the way text is displayed in certain pages. If I change the encoding from View | Text Encoding the encoding will change and the page will be displayed correctly. I've reset Safari via the menu option, trashed its plist and rebooted, and nothing works. Is there a preference file I am missing?

    The problem is no matter what text encoding I select
    from Preferences | Appearance, it will not change the
    way text is displayed in certain pages.
    That is the way it is supposed to work. This setting only takes effect when the page being viewed itself has no encoding stipulated in its html.
    If I change
    the encoding from View | Text Encoding the encoding
    will change and the page will be displayed correctly.
    That is the correct and only way to change the display of a page which has an encoding already stipulated in its html.

  • Issue Using C# to Get RTF Text From Clipboard to Outlook With Formatting and Without Encoding Tags

    I have created a little application that gathers data from various text boxes and then combines the data into a formatted richTextBox.  A person using the tool asked if I could then add a button that would allow that text (with formatting) to be copied
    and pasted into an Outlook Email.  When I do this, I can get the text into an email, but I either strip out the formatting or I get all the RTF encoding tags to come along with it. 
    I have tested to see that the copy of the data from the richTextBox has indeed made it to the clipboard correctly.  This has been verified by the fact that I can manually press "ctrl" + "v" and I can past the text with proper
    formatting into the mail body.
    I do know that I can brute force things by trying to manually wrap HTML tags around my textBox fields and then pipe that into an HTMLBody property.  In fact I can get a lot of things to work with the HTMLBody property, but while it is nice that will
    work, I feel that I must be missing something really simple while trying to work with RTF.
    I currently am pasting (using the Clipboard.GetText(TestDataFormat.RTF)) the RTF data into the Body property of the mail item.  This is bringing in all the RTF encoding tags.  I have tried to paste this directly into the RTFBody of the mail item,
    yet an execption gets thrown when executed.  Oddly, though, if I change RTFBody to HTMLBody, I do not get the exception, but I still have the RTF encoding tags in it.  Though if I feed the HTMLBody property straight, HTML text with the encoding tags,
    it will render properly.
    This has me confused then why if I feed HTMLBody HTML text with the encoding tags that it will render, but if I try and do the same for RTFBody and feed it RTF text with encoding tags it still throws an exception.  Any help in the matter would be greatly
    appreciated.  I have included the code snippet below for sending the richTextBox information to the clipboard and then attempting to retrieve it and paste it into an Outlook email.
    Thanks for the help.
    Some pertinent information:
    Blend for Visual Studio 2015 CTP6 (I switched from VS2012 as intellisense was added to Blend in 2015)
    Because of this Systems.Windows.Forms is not in use
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    myNewMailIoI.To = " "; //An attempt to ensure that the focus moves down to the body field
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Pasting data into body of email
    myNewMailIoI.Body = Clipboard.GetText(TextDataFormat.Rtf); //This will past the text with encoding tags into email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This stinks!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>different font and color</p>";
    myNewMailIoI.Display(); //Allow for window to be minimized
    myNewMailIoI.Display(true);

    Ok, I found the solution.  Part of the issue was caused by the confusion of the HTML body property acting as a text encoder for HTML text when a string is passed in vs the RTF Body property needing to have a plain text file taken and encoded into a
    byte stream.  Even though the RTF text is in readable text (albeit with the RTF Encoding Tags) it needs to be reencoded into a series of bytes. 
    This is where I failed to understand the previous answers.  I knew that RTF Body needed to have a array of bytes, and the previous answers seemed to indicate that the data in the clipboard was already in this byte format (this may have just been my
    misunderstanding) and that I needed to somehow take this byte array and do something with it.  My misunderstanding was that all the methods for getting values from the clipboard returned strings and not bytes.
    after some digging last night and with the few hints that were offered before, I came across a post on CodeProject (apparently I cannot post links, so I will try and include this so that you can find the postcodeproject(DOTCOM)/Questions/766917/How-to-convert-richtextbox-output-into-bytearray). 
    This showed that I needed to take the raw, RTF text with its RTF encoding tags from the clipboard and and encode it to a byte array and then pass this into the RTF Body property.  Included below is the final code such that I hope that it helps some other
    person as there seem to be a lot of searches for this on the web, but not a lot of direct answers.
    using System.Text;
    using Outlook = Microsoft.Office.Interop.Outlook;
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    //Add Subject
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    //Set Body Format to RTF
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Converting RAW RTF data from string to bytes. THIS IS THE FIX THAT WAS NEEDED TO MAKE IT WORK
    string myNewText = Clipboard.GetText(TextDataFormat.Rtf);
    byte[] myNewRtfBytes = Encoding.UTF8.GetBytes(myNewText); //This line cost me way too many hours of lost sleep!!!
    //Inserting RTF bytes into RTFBody property
    myNewMailIoI.RTFBody = myNewRtfBytes;
    myNewMailIoI.Display(); //Displays the newlycreated email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This works for the HTMLbody property!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>this renders properly</p>";

  • Mail Text Encoding Options Missing

    For some reason, the Message -> Text Encoding pull-down menu in my Mail has only one option -- "Automatic". All other options are missing. Thus I am here seeking for help.
    All the information I've found told me that I should go to the International Pref Pane, choose Language, click the Edit List button and choose the languages I want. I did so, and there are indeed several languages in the list. Still, the pull-down menu in Mail shows no options at all, only "Automatic".
    Does anyone know what went wrong? Is some file corrupted in some way?
    Thanks!

    I deleted com.apple.mail.plist (in fact I it them to another location so I can restore it in case things go wrong) and re-launched Mail. This time I got all the menu options that should be there. I had to re-create all the mail accounts, but the saved emails were not lost.
    Problem solved! Thanks!

  • How to change message text encoding in multiple e-mail messages?

    Hello!
    I'm newcomer in AppleScript. I have imported a lot of email messages from mbox.
    The problem is that some of messages are displayed in correct russian encoding (KOI8-R) but
    other messages displayed with incorrect encoding. So i need manually set their encoding
    via mail menu to Cyrillic (Windows) to be able to read them. I got about 1000 of those messages.
    Is there any possibility to mark those messages in mail and then run AppleScript to change
    their encoding automatically?
    something like that (that script is not working one):
    tell application "Mail"
    set selectedMessages to selection
    if (count of selectedMessages) is equal to 0 then
    display alert "No Messages Selected" message "Select the message you want to get the raw source of before running this script."
    else
    set message text encoding to "Cyrillic (Windows)"
    end if
    end tell
    Thanks!

    I was able to get it to work on all selected emails using this script:
    (Note I changed the encoding to "Simplified Chinese (EUC)")
    using terms from application "Mail"
    tell application "Mail"
    set theMessages to selection
    tell message viewer 1
    repeat with themessage in theMessages
    set selected messages to {themessage}
    activate application "Mail"
    tell application "System Events" to ¬
    tell menu item "Simplified Chinese (EUC)" of menu 1 of ¬
    menu item "Text Encoding" of menu 1 of ¬
    menu bar item "Message" of menu bar 1 of ¬
    application process "Mail" to if (exists) then click
    end repeat
    end tell
    end tell
    end using terms from

  • How to get the result of auto detecting of text-encoding in HTML component.

    Hello.
    I just run in to the wall.
    I've hard that a HTML component automatcally detect the text-encoding of a HTML page loaded,
    and it supposed to be detected through Binary data of its HTML source code.
    I wonder, if there is any variable or function to get the detected text-encoding like UTF-8, iso-8859-1 or something like that.
    I'm glad for any response.
    thanks.

    There is TEXT_IO package in forms. For more help use the Oracle Form specific forum.

  • Text encoding with non english characters

    I'm trying to publish a site in Swedish, a language with 3 extra characters (Ö, Ä, Å). When I try to publish the site I keep getting a 404 error from my ftp server. I have check the site folder contents with webmeastro and it says that the characters are not MacRoman. What text encoding does iWeb 08 use, and how can I get around this problem?
    thanks for your help.

    see this article:
    http://homepage.mac.com/thgewecke/iwebchars.html
    max

  • Script/Automator action/CSS to change text encoding?

    As an expat Israeli, I read an Isareli newspaper online every day. Most pages on their site <http://www.haaretz.co.il> display fine with the text encoding set to Default. Some, though, forget that Hebrew is written right-to-left, and insist on displaying everything backwards, which makes it a bit hard to read.
    To get such a page to display correctly I need to change the text encoding to Hebrew (Windows). However, it gets a bit boring to go to the View menu, scroll down to Text Encoding, then scroll down again to Hebrew (Windows), especially when I have to do it several times a day.
    So, I thought automating this procedure would be the way to go. Problem is I cannot find either Automator actions or Applescript Dictionary items that relate to text encoding.
    Skating on thinner ice, I think a style sheet could help tell Safari to display a page with the right text encoding, but:
    1. I have no idea how to write such a style sheet.
    2. When I looked at the source HTML of a page that displays correctly, and one that doesn't, I find that both include the following tags:
    charset=windows-1255 (inside a larger META tag), and
    <META HTTP-EQUIV="CONTENT-Language" CONTENT="he">
    These are the tags that, I thought, would allow me to distinguish between a "good" page and a "bad" one. But if both contain the same tags...
    Any ideas on how I can automate this text encoding switch?
    TIA,
    Gidi
    iMac G5   Mac OS X (10.4.8)  

    I agree with you that the authors are doing something
    not exactly kosher. But if I will complain, I know
    their knee-jerk response: Ahhh, you're using a
    Mac...
    I don't see how a windows browser could display it correctly either. Win-1255 has to be logical order, and they probably have some guys composing articles in visual order and then copy/pasting them into the Win-1255 pages without paying attention.

  • IPod Touch (2.2) Safari Text Encoding

    My wife navigated Safari to a web page with Thai text encoding. It displayed just fine. But, now Safari seems to be "stuck" with Thai text encoding and will not properly display web pages with other text encodings.
    How does one set the text encoding on the iPod Touch version of Safari?

    The situation happens when you open a Western encoded page from a link on a non-Western encoded page. So, if my wife opens the Thai Bar Association page (Thai encoded) and then follows a link to a Western encoded page, that page will be improperly displayed. The solution is to bookmark that page, close all open pages and then go to the page from the bookmark. Awkward, but it works.

  • Running mac OS 10.5.8, Using Mail 3.5, Text encoding set to Automatic. messages arrive, but the message is 200  lines of alphanumerics. Top says Content-Type: text/plain;      charset=utf-8 Content-Transfer-Encoding: base64.

    I use Mail 3.6 and some incoming email messages start with
    Content-Type: text/plain;
        charset=utf-8
    Content-Transfer-Encoding: base64
    then go on to 200+ lines of alphanumerics (mostly upper and lower case letters). 
    What causes this problem, how can I fix it?
    Text encoding is set to Automatic, and  I'm not using any fancy fonts.  Senders are usually
    sending from PCS that may well use Outlook.
    Rosemary C.  Chicago

    Does it look something like this...
    JVBERi0xLjYNJeLjz9MNCjMyNCAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNi9M
    ZW5ndGggMTU4L04gMS9UeXBlL09ialN0bT4+c3RyZWFtDQohx6hAp7lMT4WVkGpP6z3UpIQfO4eN
    QRbgjhTqX5mfaabWcvQk/hLnUX6MpKiXwist+RiaiGrzj8XGSNFXuvETWsnoPoV687Exvzo1KYV4
    jIuPmKXlRJvESTE/K2htJihPMS/o6fo3i+nHbTBRWpyrXSfmCPVEgsAzcyECvSU0Rz4MJsEXpdu6
    6u/hg1hlPkb2gpkUQJv50YtWhkD/Jg0KZW5kc3RyZWFtDWVuZG9iag0zMjUgMCBvYmoNPDwvRmls
    Check Mail>View>Message, does it say View Raw Source, Long Headers, or Default Headers?
    See if view Plaintext version helps.

  • File saveAsOpen and Base64 encoding...

    In order to send the activeDocument to a web service, i need to save is as a file image, and send in an xml format.
    Thus, i also need to encode it in Base64.
    At this point everything is OK.
    But between the saveAs of the file, its reopening, and its encoding, its corrupted.
    I receive an error on the Mongrel server.
    The Base64 encoder seems to work well, the rest of the code seem to be also ok, so I think my problem is either I do not save it correctly, either i do not reopen it correctly...
    Please save me :(
    Here is the code :
              /* STEP 1 : save current document as image file (temporary) */
              var docRef = activeDocument;
              var filepath=app.path.toString()+"/"+docRef.name+".jpg";//create the image file in the installation folder of Photoshop
              var file = new File(filepath);
              //var options = new ExportOptionsSaveForWeb();
              //options.format = SaveDocumentType.PNG;
              var options = new JPEGSaveOptions();
              options.quality=8;
              docRef.saveAs (file, options, true, Extension.LOWERCASE);
              //docRef.exportDocument (file, ExportType.SAVEFORWEB , options);
              file.close();
    /* I code here dialogBox and httpCOnenction object creation
    that do not need to be written here
    (but if you think it's important, i can give you the full script)
              var f= new File(filepath);
              f.open();
              var buffer = f.read(f.length);
              f.close();
    I build an HttpConnection object called "send"
    */                 send.request='"+f.name+""+f.length+""+base64encode(buffer)+"';
    Here is the Server error :
    Exception working with image: Not a JPEG file: starts with 0xc7 0xff `/var/folders/Nz/NzlixjchF+WAvFkZK9vVRU+++TM/-Tmp-/test599-0.jpg'

    Let's give you everything in fact, it will be more simple (by the way the code is suppose to become OpenSource)<br /><br />I work on Mac, Photoshop CS3 (10.0.1)<br />I use JavaScript<br />HTTP request received by a Mongrel server (Ruby on Rails)<br /><br />// Copyright 2008. Studio Melipone. All rights reserved. <br />// Licence GNU LGPL<br />// Send the active document to the UpShot web service (http://upshotit.com)<br />//  The document is sent as a .png file, as a draft on the user's account.<br />// Therefore you must have a document opened and Adobe Bridge installed to perform this script.<br /><br />/*<br />     <javascriptresource><br />          <name>UpShot</name><br />          <type>automate</type><br />          <about><br />          Script for Upshot <br />          Copyright 2008 Studio Melipone <br />          http://upshotit.com <br />          </about><br />          <enableinfo>true</enableinfo><br />     </javascriptresource>     <br />*/<br /><br />#target photoshop<br />#include "Base64.jsx"<br /><br />app.bringToFront();<br /><br />if( documents.length==0)// is a document opened ?<br />     alert("There are no Photoshop documents opened !")<br />else {<br />          /*********************************************/<br />          /* STEP 1 : save current document as image file (temporary) */<br />          /******************************************/<br />          var docRef = activeDocument;<br />          var filepath=app.path.toString()+"/"+docRef.name+".jpg";//create the image file in the installation folder of Photoshop<br />          var file = new File(filepath);<br />          //var options = new ExportOptionsSaveForWeb();<br />          //options.format = SaveDocumentType.PNG;<br />          var options = new JPEGSaveOptions();<br />          options.quality=8;<br />          docRef.saveAs (file, options, true, Extension.LOWERCASE);<br />          //docRef.exportDocument (file, ExportType.SAVEFORWEB , options);<br />          file.close();<br />          <br />          /********************************************************/<br />          <br />     // Only Bridge can use HttpConnection, so we test if it is installed<br />     var bridgeTarget = BridgeTalk.getSpecifier(getAppSpecifier("bridge")); <br />                    <br />     if( !bridgeTarget ) { <br />          alert("Adobe Bridge not installed, needed to continue."); <br />     } <br />     else {     <br />          preferences.rulerUnits = Units.PIXELS;<br />          displayDialogs = DialogModes.NO;<br />          <br />          /**********************************/<br />          /* STEP 2 : retrieve user's login & password */<br />          /*******************************/<br />          <br />          res = "dialog { text: 'UpShot authentication', \<br />                         info: Panel { orientation: 'column', alignChildren:'right', \<br />                                             text: 'Please Identify Yourself', \<br />                                             login: Group { orientation: 'row', \<br />                                                  s: StaticText { text:'Login :' }, \<br />                                                  e: EditText { characters: 30 } \<br />                                             }, \<br />                                             passwd: Group { orientation: 'row',  \<br />                                                  s: StaticText { text:'Password :' }, \<br />                                                  e: EditText { characters: 30, properties:{noecho: true} }, \<br />                                             } \<br />                                   }, \<br />                         buttons: Group { orientation: 'row', \<br />                                        okBtn: Button { text:'OK', properties:{name:'ok'} }, \<br />                                        cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \<br />                         } \<br />                    }"; <br />          <br />          dlg = new Window (res); <br />          dlg.center(); <br />          dlg.show(); <br /><br />          var login = dlg.info.login.e.text;//retrieve the values given in the form<br />          var pass = dlg.info.passwd.e.text;<br /><br />          /******************************/<br />          /* STEP 3 : send image through Bridge */<br />          /***************************/<br />          var f= new File(filepath);<br />          f.open();<br />          var buffer = f.read(f.length);<br />          f.close();<br />          <br />          alert("file size "+file.length);<br />          alert("f size "+f.length);<br />          alert("BUF "+buffer);<br />          alert(base64encode("B64 "+base64encode(buffer)));<br />          <br />          // create a new BridgeTalk message object <br />          var bt = new BridgeTalk; <br />          // target the Adobe Bridge application <br />          bt.target  = bridgeTarget; <br />          //p173 of Javascript Tools Guide for CS3 for http message<br />          bt.body = "\<br />               if(!ExternalObject.webaccesslib ) {\<br />                    ExternalObject.webaccesslib = new ExternalObject('lib:webaccesslib');\<br />               }\<br />               var http = new HttpConnection('http://127.0.0.1:3000/en/users/get_id.xml') ; \<br />               var idfile = new File('"+app.path.toString()+"/id.xml') ;\<br />               http.response = idfile ; \<br />               http.username = '"+login+"';\<br />               http.password = '"+pass+"';\<br />               http.mime='text/xml';\<br />               http.responseencoding='utf8';\<br />               http.execute();\<br />               http.response.close();\<br />               http.close();\<br />               idfile.open();\<br />               var send = new HttpConnection('http://127.0.0.1:3000/en/users/'+idfile.read()+'/upshots') ; \<br />               send.method = 'POST';\<br />               send.username = '"+login+"';\<br />               send.password = '"+pass+"';\<br />               send.mime='text/xml';\<br />               send.requestheaders=['Host','http://localhost:3000'];\<br />               send.requestheaders=['Accept','*/*'];\<br />               send.requestheaders=['Content-Type','text/xml'];\<br />               send.request='<upshot><title>titleforyourimage</title><file_name>"+f.nam e+"</file_name><size>"+f.length+"</size><javafile>"+base64encode(buffer)+"</javafile></ups hot>';\<br />               send.execute();\<br />               idfile.toSource();\<br />          ";<br />          <br />          bt.onResult = function(result) { <br />               object = bt.result = eval(result.body);<br />               //file.remove();<br />               //object.remove();<br />               //bridge.quit ();<br />               return eval(result.body); <br />          } ;<br />          <br />          bt.onError = function( message ) { <br />               var errCode = parseInt (message.headers ["Error-Code"]); <br />               throw new Error (errCode, message.body); <br />          } ;<br />                    <br />          //send the message ( also launch the targetted application)<br />          bt.send(10);<br />     <br />     /**********************************************/<br />     /* STEP 4: Once all done, delete the image previously created */<br />     /*******************************************/<br />     }<br />}<br /><br />//////////////////////////////////////////////////////////////////<br />/////////////////////////////////////////////////////////////////<br />/*functions from http://www.ps-scripts.com/bb/viewtopic.php?t=1282 */<br />//////////////////////////////////////////////////////////////<br />/////////////////////////////////////////////////////////////<br /><br />function getAppSpecifier(appName) {<br /><br />   if (isCS2()) {<br />      if (appName == 'photoshop') {<br />         return 'photoshop-9.0';<br />      }<br />      if (appName == 'bridge') {<br />         return 'bridge-1.0';<br />      }<br />      // add other apps here<br />   }<br /><br />   if (isCS3()) {<br />      if (appName == 'photoshop') {<br />         return 'photoshop-10.0';<br />      }<br />      if (appName == 'bridge') {<br />         return 'bridge-2.0';<br />      }<br />      // add other apps here<br />   }<br /><br />   return undefined;<br />};<br /><br />function isCS2() {<br />   var appName = BridgeTalk.appName;<br />   var version = BridgeTalk.appVersion;<br /><br />   if (appName == 'photoshop') {<br />      return version.match(/^9\./) != null;<br />   }<br />   if (appName == 'bridge') {<br />      return version.match(/^1\./) != null;<br />   }<br /><br />   return false;<br />};<br />function isCS3() {<br />   var appName = BridgeTalk.appName;<br />   var version = BridgeTalk.appVersion;<br /><br />   if (appName == 'photoshop') {<br />      return version.match(/^10\./) != null;<br />   }<br />   if (appName == 'bridge') {<br />      return version.match(/^2\./) != null;<br />   }<br /><br />   return false;<br />};

  • Text Encoding (Big 5) not being auto-detected

    I just had to reinstall OS X (10.4, the upgraded to 10.4.9) due to a bad crash. In Safari (2.0.4), I tried to view a particular page.
    http://www.ettoday.com/
    This is a Big-5 (chinese) encoded page; I have my Default Text Encoding set to Western (ISO Latin 1), and the page looks garbled when I try to view it, unless I go to View->Text Encoding->Traditional Chinese (Big 5), and then it displays correctly. My question is, why isn't this encoding being auto-detected and display correctly without manually setting it? Looking at the source, about 22 lines down there is this:
    <meta http-equiv="ªF´Ë·s»D³ø" content="text/html; charset=big5">
    which looks like the appropriate specification of the encoding. Can someone who has chinese fonts installed please verify this? Is this something Safari is doing wrong, or possibly something got lost in my system reinstall (to tell the truth, I can't recall specifically if this was a problem prior to my crash).
    Thanks,
    David

    Ok, thank you. I gave up trying to understand html right around when the "blink" tag came out, and I just get paranoid every time I do a reinstall that I'm missing some critical part. I like the validator-- never knew about that.
    Now, if you do a search on the source code for that ETToday page, somewhere far down you'll come to another section that reads:
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    blah blah blah
    This does appear to be properly formatted, and maybe it's there specficially for English-default browsers. However, perhaps neither Safari nor the validator are picking up this, or maybe it's referring to something else altogether?
    thanks,
    dave

  • Two Mail Error Msgs: Message Can't Be Saved/Drafts & Invalid Text Encoding

    My Mail was working fine until just recently. Now when I am replying or composing emails, out of the blue, in the middle of typing my message, I will get this error message first: "This message can't be saved to the Drafts mailbox."
    After closing that error box which had nothing to do with my typing, I will then get this second error message: "Invalid Text Encoding....converted to the "Japanese (Shift JIS)" text encoding...."
    I then close that message and try to finish typing my message. I've checked to see that my text encoding is set where it belongs, and it is never set to Japanese. Does anybody know what is going on here? Any help will be much appreciated. Thank you, Diane

    The following test might be helpful in deciding what to try next: Create a New User Account, and as that New User try to set up one account -- since you have a POP set to leave messages on the server after download. If not familiar with setting up a New User Account, see:
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/8235.html
    This will be a useful test to now check this behavior in another User Account, and of course is not meant to suggest a permanent switch to the New User Account, but rather a test of the Mail application outside of your normal User Account and its existing setup data.
    Ernie

  • Dashcode: "The text encoding of the contents couldn't be determined...

    Dashcode gives this error dialog:
    "The document Tags.html could not be opened. The text encoding of the contents couldn't be determined."
    The warning ends with (in smaller font):
    You may be able to open the file by specifying a text encoding.
    So the mystery remains, how do I do that? This is text coming from MP3 tags, so who knows what encoding it is. Terminal renders them as question marks.

    Anchor the image in the previous line. If necessary, you can add an empty paragraph before to hold the anchor, and set it to keep with next. Set teh leading for this empty paragraph at 0. In order for this not to push the line down at the top of a frame, however, the frame options must be set to leading for the first baseline.

Maybe you are looking for

  • Solaris 10 X86, after reboot the line choose Windows replaced by OS/2

    Hi, I installed Solaris 10 X86. After restart I got 3 lines: 1. Solaris 10 2. Solaris failsafe 3. Windows I checked the line 3 and I can connect to my windows 2000 server. after 4-5 days, suddenly, the line 3 is changed. now is look like that: 1. Sol

  • Visible of sprite script trouble

    hi list I need to have a few sprites invisible on opening of my program and have them appear when rolled over. I am using the following script in the script channel above the play head: on mouseLeave me the visible of sprite 34 = 0 end mouseLeave me

  • XMP Info Panels in Illustrator CC

    Hi, Please can some let me know where to find the Custom XMP Info Panels in Illustrator CC. Thanks

  • Inkove method after close window with unload

    Hi guys, I'm trying create a way the invoke a method in a BackingBean after close the window of browser for this I'm using the event unload of 'af:document'. I used the Frank's sample ( http://blogs.oracle.com/jdevotnharvest/entry/responding_to_the_p

  • Slow upload since swapping to BT

    Hello, Since i came over to BT from TALKTALK on the 15th of Feb this year,my upload speed has gone from about 700k to less than 350k. I do a lot of online gaming as as such i do value my upload alot. I contacted BT 3 times and told thats the best the