Encoding for javascript in netscape

Hi,
In my project, we are making a call to cgi program from javascript. cgi program returns output in javascript which will be executed to the display the screen.
This is working fine in IE browser, but screen hangs in Netscape 7.1. We are using encoding of ISO-8859. Will this encoding suit for netscape also or is there any other problem.
Thanks & Regards,
Nasrin.N

Hallo Paul,
Now we have have the problem, and we a solution somewhere. Question is just where? If you saw this snippet in our code, please supply a reference. We did in newer SPs fix some code in our SYSTEM example pages that looks very much like this. Or not?
brian

Similar Messages

  • Javascript in netscape frames

    Hi all
    The javascript doc=document.frames[name].document
    does not work for frames in Netscape .
    It works in IE.
    Paul

    Hallo Paul,
    Now we have have the problem, and we a solution somewhere. Question is just where? If you saw this snippet in our code, please supply a reference. We did in newer SPs fix some code in our SYSTEM example pages that looks very much like this. Or not?
    brian

  • Encoding for content in KM

    Hi All,
    I'm modifying and updating an existing file in KM. I use DOM to parse the file and update it as follows:
    Element rootElem = doc.getDocumentElement();
    <code to update rootElement>
    Finally, I want to convert the Document or rootElement to IContent and update it in the repository. I use the following code:
    IContent newContent = (IContent)MimeUtils.getContentFromString(rootElem.toString(),"text/xml");
    IContent newFile = new Content(newContent.getInputStream(),"text/xml",newContent.getContentLength(),"ISO-8859-1",null);
    resource.updateContent(newFile);
    The file is updated with the above code, however the encoding "ISO-8859-1" does not seem to be set. There are spanish characters in the file and upon opening the updated xm file in the browser, I get "Invalid character" errors for the spanish characters..
    Is there an alternative method to set the encoding for the created "Content" object? Appreciate any pointers on this. Thanks!
    ~Prachi

    resolved by creating content from the string "<?xml version="1.0" encoding="ISO-8859-1"?>" + rootElement.toString()

  • I have repeatibly loaded Adobe Acrobat Reader but the Plugin Check gives me Adobe Acrobat Adobe PDF Plug-In For Firefox and Netscape 10.0.1 Outdated Version Update. While the plug in check is important it is quite bothersome at present. Please help.

    EVERY TIME the browser boots it kicks off the plug in check. I understand that this is important but it is currently a pain. Once I update Adobe Acrobat Plug in the browser does not recognize that the plug in has been installed and keeps coming up and up an up an up.
    This is the message I get.
    Adobe Acrobat
    Adobe PDF Plug-In For Firefox and Netscape 10.0.1 Outdated Version Update
    Please get back with me regarding a fix.
    Jeff

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • Live Video encoder for Mac.  Does it exist?

    Looking to d a live video stream. Would like to use Vp6 I do not think Adobe had a Flash video encoder for the mac.
    As always, thanks for your time and help.
    Mike

    There is no Airscan :-)
    but you can scan wirelessly on any your OS compatible network scanner of MFP printer with a scanner.
    This has to be connected to your network either via WiFi or Eth cable.

  • How to change UTF-8 encoding for XML parser (PL/SQL) ?

    Hello,
    I'm trying to parse xml file stored in CLOB.
    p := xmlparser.newParser;
    xmlparser.parseCLOB(p, CLOB_xmlBody);
    Standard PL/SQL parser encoding is UTF-8. But my xml CLOB contain ISO-8859-2 characters.
    Can you advise me, please, how to change encoding for parser?
    Any help would be appreciated.
    null

    Do you documents contain an XML Declaration like this at the top?
    <?xml version="1.0" encoding="ISO-8859-2"?>
    If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding.

  • What's the recommended import encoding for best 'practical' ipod use?

    I just really found out that you can change the import encoding for different quality sound and such and I'm wondering what is the best or most practical quality setting for use on my IPOD? Also how about the best, period? It would be nice to have my favorite albums on my ITUNES in the best quality I can have them.
    Most of my songs are AAC encoded, 128 kbps, 44.1khz, low-complexity, stereo.
    A while ago I was messing around and changed preferences settings and so some music is encoded as MPEG-1 Layer 3, 160kbps, joint stereo, ID3-v2.2.
    How would you import?
    Thanks!

    Meg has a good memory. I do rip in AAC@256 VBR. After experimenting around for about 2 years or so, I have found that this setting yields the best audio quality for my tastes. You have to keep in mind what kind of equipment you are using. If you are using Apple earbuds & internal computer speakers, then it's doubtful that you will be able to tell much difference. I use Shure SE310 earphones & Bose Companion 5 speakers with my computer, so I can most definitely tell lower audio quality files. The last thing to remember is that ripping at a higher bitrate or with a Lossless format will increase the size of your files & thus use more room on your iPod. My AAC@256 files are 2x the size of the same files ripped @128. This doesn't matter to me as I recently purchased a 160GB Classic a few months ago. Hope this helps.

  • Playing video encode for a PSP on iPhone

    Hello.
    When the iPhone is launched in the UK can anybody tell me if i can use video that i have encoded for my PSP on it? The screen sizes are quite close and as i have gigs of stuff i have encoded i really don't want to have to do it all again.
    Kind Regards
    Alanstubbyfingers

    It will have to be recoded using the h.264.

  • H.264/AVC software encoding for cameras

    Hi All,
                 Please let me know, how can we activate H.264/AVC video encoding (new feature in Flash player 11 [H.264/AVC software encoding for cameras]) using actionscript 3 in AIR application, I think, it could not be by default as there are no updates available for flash builder 4.5. So, how can we pick the encoding option. Any new API or methodology for this?
    Any one any idea??

    H.264/AVC software encoding is not turn on by default.  You need to assign the NetStream.videoStreamSettings property an H264VideoStreamSettings object.  Here's a very simple example;
    package
              import flash.display.Sprite;
              import flash.events.NetStatusEvent;
              import flash.media.Camera;
              import flash.media.H264VideoStreamSettings;
              import flash.net.NetConnection;
              import flash.net.NetStream;
              public class TestAVC extends Sprite
                        private var _nc:NetConnection;
                        private var _ns:NetStream;
                        private var _camera:Camera;
                        private var _h264Settings:H264VideoStreamSettings;
                        public function TestAVC()
                                  _h264Settings = new H264VideoStreamSettings();
                                  _nc = new NetConnection();
                                  _nc.client = this;
                                  _nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                                  _nc.connect("some fms server");
                                  _camera = Camera.getCamera();
                        private function onNetStatus(e:NetStatusEvent):void
                                  switch (e.info.code) {
      case "NetConnection.Connect.Success":
                                                      _ns = new NetStream(_nc);
                                                      _ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                                                      _ns.client = this;
                                                      _ns.attachCamera(_camera);
                                                      _ns.videoStreamSettings = _h264Settings;
                                                      _ns.publish("testAVC");
                                                      break;
                        public function onBWDone():void {}
                        public function onMetaData(o:Object):void {}

  • How to set encoding for xml Marshaller?

    Hi,
    I am using SAPXMLToolkit. And I use XMLMarshaller to convert from xml to java classes (jaxb classes). Now when I get some characters like ü, the marshaller gives an error
    com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 69(:main:, row:1, col:323)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:207)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:205)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.read(AdvancedXMLStreamReader.java:152)
         at com.sap.engine.lib.xml.parser.XMLParser.scanCharData(XMLParser.java:1896)
         at com.sap.engine.lib.xml.parser.tokenizer.XMLTokenReaderImpl.next(XMLTokenReaderImpl.java:190)
    How do I solve this?? How do I set encoding for the marshaller?
    Regards,
    Guru

    Hi ogre,
    To set the encoding scheme for an XML document, you can use the createProcessingInstruction. Our CVIXML instrument driver (which
    is basically and user-friendly wrapper made around the MSXML interface) uses
    this method to specify the version of the XML document. So, what you could do
    is simply modify our existing CVIXML instrument driver to include the encoding.
    It's actually quite simple to do this.
    First off, open up the cvixml.c file
    located in the <CVI>\toolslib\toolbox directory in CVI. Then change the
    value of the constant XML_PROC_INSTR_DATA
    (located on line 42) from "version=\"1.0\"" to "version=\"1.0\"
    encoding=\"UTF-8\"". The save your source file and
    select Options >> Create Object file. This object file
    (cvixml.obj) is attached to your cvixml.fp function panel. 
    To test this out, you could simply use some code like
    CVIXMLNewDocument ("RootElement", &xmlDoc);
    CVIXMLSaveDocument (xmlDoc, 0, "C:\\Test.xml");
    Then the Test.xml document should say
    <?xml version="1.0" encoding="UTF-8"?>
    <RootElement/>
    Hope this helps!
    Best Regards,
    Jonathan N.
    National Instruments

  • Escaping a string for Javascript

    Hi!
    I've been using a lot of time on how to escape special characters in order for Javascript to accept a string. It seems like I need to escape single quotes, double quotes, backslash and newline.
    I've written some code, but I just can't get it to work.
    public static String editorSafeFilter(String text)
            if(text == null){
                return null;
            StringBuffer buffer = new StringBuffer(text.length());
             for (int i = 0; i < text.length(); i++) {
                char ch = text.charAt(i);
                 switch (ch) {
                   case 10: // '\n'
                        buffer.append(" ");
                        break;
                    case 13:
                         buffer.append(" ");     // '\r'
                         break;
                    case '\'':
                        buffer.append('\\');
                        buffer.append("\'");
                        break;
                    case '"':
                        buffer.append('\\');
                        buffer.append('\"');
                        break;
                    case '\\':
                        buffer.append('\\');
                        buffer.append('\\');
                        break;
                    default :
                        buffer.append(ch);
                        break;
            return buffer.toString();
        }Anyone have any links or sample code that works?
    thanks!
    Vidar

    It looks like you want the actual escape sequences... public static String editorSafeFilter(String text)
            if(text == null){
                return null;
            StringBuffer buffer = new StringBuffer(text.length());
             for (int i = 0; i < text.length(); i++) {
                char ch = text.charAt(i);
                 switch (ch) {
                   case '\012': // '\n'
                        buffer.append("\\n");     // '\n'
                        break;
                    case '\015':
                        buffer.append("\\r");     // '\r'
                        break;
                    case '\'':
                        buffer.append("\\\'");
                        break;
                    case '\"':
                        buffer.append("\\\"");
                        break;
                    case '\\':
                        buffer.append("\\\\");
                        break;
                    default :
                        buffer.append(ch);
                        break;
            return buffer.toString();
        }

  • Why did TB set the char encoding for a reply to charset=UTF-16LE ?

    I got a message from Google AdWords in HTML format and wrote a reply. When I sent it I got a timeout trying to send it. I use AVG antivirus to scan outgoing messages using a "local server" at address 127.0.0.1.
    Note that this was my second reply to such a message from AdWords. The only thing I could see that was different was a longer subject line (ending with three periods or dots) and a longer HTML message to which I was replying.
    I tried many things to fix the problem and I cannot remember them, sorry.
    Finally, I got success after truncating the message and the long subject line. The reply was sent instantly, as usual, instead of timing out.
    But it wasn't really success. When I looked at the sent message, the characters in my reply (only) were in Chinese. Looking at the raw (source) message, I see that the charset was set as follows: Content-Type: text/plain; charset=UTF-16LE; format=flowed .
    This seems like a strange charset; nowhere in my settings do I specify anything other than Western (ISO-8859-1).
    I finally was able to send the message successfully (I think) by using Options > Character Encoding > Western (ISO-8859-1), which seems to force the message to be sent using this standard encoding instead of Little Endian.
    What caused this problem to happen? Is there a TB overflow bug for long subject lines?
    I realize that TB is an old and unsupported product, but it seems to be the only good email client to use with Windows 8, so I'm just hoping someone knows something about this.

    Originally posted by: warren.tang.nospam.com
    Warren Tang wrote:
    > Warren Tang wrote:
    >> Warren Tang wrote:
    >>> Hi everybody,
    >>>
    >>> I've been trying to set the default encoding of new files as UTF-8.
    >>> Here are the two settings I've set:
    >>>
    >>> 1. Windows > Preferences > General > Content Types, set UTF-8 as the
    >>> default encoding for all content types.
    >>> 2. Windows > Preferences > General > Workspaces, set "Text file
    >>> encoding" to "Other : UTF-8".
    >>>
    >>> However when I create a new text file, the encoding is always
    >>> ANSI/ISO-8859-1. What did I missed? Thanks.
    >>>
    >>> Regards,
    >>> Warren
    >>
    >> I've also tried
    >> Project Properties > Resource > Text file encoding = UTF-8
    >> However it doesn't work either.
    >>
    >> The only thing that works is changing the file's encoding property,
    >> but I don't want to change it every time I create a new file.
    >>
    >> Is it a bug?
    >
    > It turns out that there are other places I need to set up for HTML and
    > CSS files:
    >
    > Windows > Preferences > Web > CSS Files > Encoding = UTF-8
    > Windows > Preferences > Web > HTML Files > Encoding = UTF-8
    I'm getting mad... The file (on the disk) is still not encoded in UTF-8
    but ANSI.

  • How to change the Content-Transfer-Encoding for the fmddataa.fmd from base

    Dear all,
       When I using this SO_DOCUMENT_REPOSITORY_MANAGERto send email,I find the fmddata.fmd  file have been changed  to binary file attachment. I don't hope so.any one have good idea to avoid this case occur?
      Can you tell me how to change the Content-Transfer-Encoding for the fmddata.fmd from base64 to quoted-printable.  The quoted-printable is the Content-Transfer-Encoding for text file with extension .txt
    Best Regards,
    Merry

    Thank you

  • Content-Transfer-Encoding for mail from Portal

    Hi,
    I work on Portal 7.0 SP 12.
    Do You know how to change encoding (Content-Transfer-Encoding) for mails send from portal by users (ex. from Collaboration Launch Pad) ?
    Regards,
    Jarek

    Thank you

  • Encoding for blank spaces in url in a sql statement in report

    1. What function or process do I use to encode for blank spaces in a url link in a report?
    I need to link from a report to a 2nd report and pass 5 variables. I believe that I need to do that by embedding my own url in the sql for the report, since the standard report sets up for only 3 variables to be passed.
    One of my variables PARTNER_FIRM has spaces in it, so how do I encode for that in the query. Currently, I have the following (... simplified).
    select partner_firm,
    count(distinct event) distinct_events,
    '<a href="f?p=18509:4:&SESSION.::NO:4:P4_PARTNER_FIRM,P4_QUARTER,P4_CATEGORY,P4_PRODUCT_CATEGORY,P4_EVENT:' ||
    partner_firm ||
    '%2C&P3_QUARTER.%2C&P3_CATEGORY.%2C&P3_PRODUCT_CATEGORY.%2C&P3_EVENT.">' ||
    count(distinct lower(attendee_email)) || '</a>' distinct_attendees
    from all_events ...
    but partner_firm has spaces which are returned. I think there is some way that I can encode for that?
    Thanks,
    Stephen

    Sure there is:
    select apex_util.url_encode('http://ww.oracle.com/') from dual
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

Maybe you are looking for