How to set character encoding to Greek in a javascript file in Dreamweaver CS4?

I have a javascript file built with a text editor some time
ago, which has Greek characters in one of the variables:
1.) --> var
scrollercontent='</font><br><font face="Verdana"
color="#333333" size="-1">11-04-2008:
<b>ΜΑΝΩΛΗΣ
ΜΗΤΣΙΑΣ
</b><br><img SRC="mitsias2.gif" height=148 width=104
border="0" /><p></font>' <--
In DW CS4 it displays as
2.) --> var
scrollercontent='</font><br><font face="Verdana"
color="#333333" size="-1">11-04-2008: <b>???O??S ???S??S
</b><br><img SRC="mitsias2.gif" height=148 width=104
border="0" /><p></font>' <--
When trying to save the corrected content in 1.) I get an
error message that DW cannot save the Greek characters. I am asked
to change the character encoding.
I don't know how to change the character encoding in a js
file. Is there a "head" file like in HTML? Or how does one
determine the character encoding in a js file?
When I change the encoding in the prefereces, which is
"Western" to "Greek" or "UTF", I have the same result.
Thanks for help.
jml

The .js file and the html need to have the same encoding. If
your html uses iso-8859-7, then the .js must also use that. But if
the original text editor created the .js file using utf-8, then
that is what the html needs to use.

Similar Messages

  • As a webservice client, how to set character encoding for JAX-WS?

    I couldn't find the right API to set character encoding for a webservice client. What I did is
    1, wsimport which gives me MyService, MyPortType...
    2. Create new MyService
    3. Get MyPort from MyService
    4. Call myPort.myOperation with objects
    Where is the right place to set character encoding and how to set it? Thanks.
    Regards
    -Jiaqi Guo

    The .js file and the html need to have the same encoding. If
    your html uses iso-8859-7, then the .js must also use that. But if
    the original text editor created the .js file using utf-8, then
    that is what the html needs to use.

  • How I set character encoding for everypage and alway?

    I use Thai window 874 open the page when I select some website it contain Thai then click open new tab it change to western windows 1252. It can not display Thai. I must set character encoding to Thai windows 874 everytime.

    Try this:
    Prefrences -> Content -> Fonts & Color -> Advanced
    At the bottom, choose your Encoding.

  • How to set Character field's Format Mask?

    dear all,
    how to set Character field's Format Mask?
    i searched the forum and found the following, where can i use this code and how to change and set its format mask.
    SRW.SET_FORMAT_MASK('mask');
    Thanks
    Muhammad Nadeem

    Nadeem,
    If you have database 10g, look into function REGEXP_REPLACE. Otherwise you can also try this (you might already know).
    SELECT SUBSTR('CHHOCMIPO07020001', 1,2)||'-'||SUBSTR('CHHOCMIPO07020001' ,3,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 5,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 7,3)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 10,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 12,2)||'-'||
    SUBSTR('CHHOCMIPO07020001' , 14,4)
    FROM dual
    CH-HO-CM-IPO-07-02-0001
    If you have to use this at many places, create a function, pass the raw value, manipulate the string and return.
    FS

  • Firefox4 cannot read japanese language. Although i set character encoding UTF-8.

    Firefox4 cannot read japanese language. Although i set character encoding UTF-8.
    in all web site: http://www.youtube.com/watch?v=lAagLbHYDZY or google . i update language in my windows7. and set font or any but not work.
    And download firefox japanese language any installs but.. ( in picture)
    http://poto.cyberwakeup.com/images/cqs1308507072d.PNG
    and run...
    http://poto.cyberwakeup.com/images/opt1308507757r.PNG
    in IE9 or Opera can read but FireFox4 cannot :(
    ps. my windows language default is Thai.

    Try to toggle some of the <u>Boolean</u> <b>gfx.font_rendering</b> prefs on the about:config page to disable some features.<br />
    Filter: gfx
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    You can use the Filter bar at to top of the about:config page to locate a pref more easily.
    * http://kb.mozillazine.org/about:config

  • How do I go about transferring files from Dreamweaver CS4 to Dreamweaver CC?

    How do I go about transferring
    files from Dreamweaver CS4 to Dreamweaver CC?

    If both versions are on the same hard drive, simply tell DW CC where your site files are located on your hard drive.  Go to Site > New Site and define your site.
    Nancy O.

  • Setting Character encoding programmaticaly?

    Hi,
    I am using Sun J2ME wireless toolkit 2.1, and i have a problem with characer encoding. I am receiving text from a .NET web service, and after some processing in the client, i send the string back.
    The problem is, the string i am sending back includes Turkish characters. These are sent as question marks instead of characters.
    I have failed to find a method that changes the character encoding used while making a web service call.
    Actually, i could not see any way to change the encoding overall. For the emulator, property file can be used, but what about the devices i'll be deploying the app? It'd be really great if someone could point me in the right direction.
    Best Regards

    Hi,
    My situation is as follows. I have .NET web services on the server side, and i am using mobile devices as clients. When i get a string from method A in web service , i can display it on the device screen without a problem. after that, if i send the same string that i've received from method A as a parameter to method B, the .NET code receives garbage instead of turkish chars.
    At the moment i am encoding turkish chars at the client side, and decoding them at the .net web server processing code.
    I'd like to try setting the encoding to utf8, but as i have written, i have not seen any way of doing this. Changing properties file for emulator is possible, but how can i do it for the target devices. I have not seen an api call for this purpose in midp or cldc docs. Thanks for your answer
    Regards

  • What is the proper way to set character encoding in an HTTPService request?

    I'm trying to get an HTTPService object's request to have
    proper character encoding. If I do nothing, I get "null" inside a
    Java servlet when I call getCharacterEncoding() on the request
    object. If I do this to my Flex HTTPService:
    httpService.contentType = "application/x-www-form-urlencoded;
    charset=UTF-8";
    then I get a valid character encoding (UTF-8) in the Java
    servlet as I should. But the problem is that my HTTPService's POST
    parameters are no longer coming along with the request. If I drop
    the charset value and set this instead in Flex:
    httpService.contentType =
    "application/x-www-form-urlencoded";
    then I get my POST params in my servlet just fine, but of
    course, no charset info.
    (For completeness, I am also setting: httpService.method =
    "POST"; and httpService.resultFormat = "e4x"; as well as the URL.)
    How do I send charset info without interfering with the
    transmission of the POST params? This is a serious flaw for anyone
    doing UTF-8 content, because most servers are going to assume
    ISO-8859-1 if you don't send anything specific. It's interesting
    that Flex is actually encoding in UTF-8. I know, because I am
    currently working around the problem by intercepting the HTTP
    request in my servlet and forcing the character encoding to UTF-8
    before binding the params. That's a lousy workaround, though.
    Hint to Flex 3 developers: It would be much more preferable
    to have a setCharacterEncoding method (or characterEncoding prop)
    on the Flex HTTPService.

    Hello,
    I realize this is an old thread, but the problem still seems
    to exist in Flex 3 and I run into it
    Unfortunately I don't understand the workaround.
    Could someone point out in a bit more detail how this should
    be done?
    Many thanks indeed,
    Peter
    _servlet = new HTTPService();
    _servlet.url= ...;
    _servlet.resultFormat=_resultFormat;
    _servlet.addEventListener(ResultEvent.RESULT,onServiceActionResult);
    _servlet.addEventListener(FaultEvent.FAULT,onServiceActionFault);
    _servlet.requestTimeout=_timeout;
    _servlet.contentType=_requestMimeType;
    _servlet.method=_method;
    XML.prettyPrinting=false;
    if(sdk13922Workaround) {
    _servlet.request=params;
    this._token=_servlet.send(null);
    } else {
    _servlet.request=request;
    this._token=_servlet.send(_params);
    quote:
    Text

  • Setting character encoding in a Writer

    Hi,
    Is this possible?
    I'm reading from an InputStream (stream from a text file) using an InputStreamReader wrapped in a BufferedReader. I set the character encoding in the InputStreamReader.
    Then I read line by line - making some modifications in the text and writing (appending)
    each line into a new file (using a FileWriter wrapped in a BufferedWriter).
    I can't seem to set the character encoding in any of the Writer.
    Firstly, do I need to specify the encoding to 'keep' the correct encoding?
    And if so, what writer should I use?

    Yes you need to specify the encoding. Use an OutputStreamWriter in much the same way as you used the InputStreamReader.

  • How to set Media Encoder to render composition backgrounds

    How do I set media encoder to export compositions with the background color instead of always black?

    That doesn't answer the question - that's a work around.
    Your answer tells me that there is no setting in media encoder to render out my composition without an alpha.  The only way to render without an alpha is to alter my composition to make it compatible with media encoder.
    Seems like a strange way to program your software.

  • How to SET CHARACTER SET UTF8

    I am looking to execute something like the stmt "SET CHARACTER SET UTF8"
    However if i put the above stmt in a SQLDBC_Statement_execute call, i get fail message.
    I should also mention here that, SQLDBC_Connection_connect call provides a way to provide the character set as one of the parameter. Is that the only way we can set character set from an application while using SQLDBC ?
    Regards
    Raj

    Hi Lars,Elke and Thomas,
    Thanks to all of you for your valuable input. Honestly speaking i'm little lost on how to go about this requirement of unicode support for my application. Please allow me some more time to investigate this and then get back to you.
    In my application for all other databases a simple execution of "SET CHARACTER SET UTF8" is all that's been done to set the support for UTF-8. So, I really need to figure out what all changes needs to be done in the app if this is not going to work.
    In the meantime something more caught my attention while i was using this command:
    sqlcli MAXDB1=> \dc domain.columns
    Table "DOMAIN.COLUMNS"
    Column Name
    Type
    Length
    Nullable
    KEYPOS
    SCHEMANAME
    CHAR UNICODE
    32
    YES
    OWNER
    CHAR UNICODE
    32
    YES
    What does the type  'CHAR UNICODE' for Type means here?
    Regards
    Raj

  • How to set default encoding and charsets for jsp and servlets.

    Hi,
    Is there any possibility to set default encoding or charset for jsps and servlest (for both request and response)?
    For example in Weblogic such parameters can be set in weblogic specific configuration files (weblogic.xml).
    Thanks in advance.

    Hi,
    I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
    You can do this in compound layout.
    Regards,
    Stefan

  • How to change character encoding in firefox 4 without enabling menu bar

    Occasionally I need to try various character encoding so the characters look correctly. However, with the new Firefox 4 interface, the only place I can find to do that is to re-enable the old style Menu Bar then select View->Character Encoding

    You can find the Character Encoding in the Firefox > Web Developer sub menu.

  • How to set InDesign CS5 as the default in the system having InDesign CS4 has the default ?

    How to set InDesign CS5 as the default .indd application when you have InDesign CS4 and CS5 installed and InDesign CS4 is the current default (InDesign CS4 was installed after CS5 installation)

    Thanks, but I already tried it at first but it is not the effective method.
    I think its because of the this reason :
    Both - InDesign CS4 and InDesign CS5 have their application/program/exe named as "indesign.exe".
    Installation of either InDesign CS4 or InDesign CS5, sets a Windows default path for the "indesign.exe". In this case, since InDesign CS4 was installed later (after InDesign CS5 was already installed), the "indesign.exe" which was directing InDesign CS5's "indesign.exe" was replaced by InDesign CS4's "indesign.exe".
    But after long google and search through regedit, I've got the solution :
    Locate HKEY_CLASSES_ROOT\InDesign.Document\Shell\Open\Command in regedit
    Change the value of (Default) attribute to "C:\Program Files (x86)\Adobe\Adobe InDesign CS5.5\InDesign.exe" "%1"     // Include the quotes
    Message was edited by: Vidit Kothari

  • How to deactivate Related Files in Dreamweaver CS4 (totally)

    Hello,
    how can I deactived the Related Files feature (not only the Bar).
    We work directly on the Server. We don't want Dreamweaver to donwload the related files and save them back!
    Our wish is that Dreamweaver CS4 save only the file we have open (without the related files).
    Axel Neswadba

    When you use "Save" with Related Files, whichever document (either the main document in the Design View, or the Related File in Code VIew) that has focus is saved.
    You can disable Related Files in the Preferences General Tab. You will need to shutdown and restart DW for the change to take efffect.
    HTH,
    Randy

Maybe you are looking for

  • Open Item managemnt to be activated to Vendor  Recon Accounts.

    Dear all, My client now wants to activate Open item Management for Recon Accounts of VEndors.  I am getting Error Message no. FH031. Please help. regards jaya

  • Regarding Portal Performance

    HI friends:    after some time running, Portal memory seems to be overflow, users can't log onto the system, error  says iviews couldn't be reached,  when restart server, everything recover, could you please tell me how release those memory which see

  • Determine the customer numbers for which the installations

    Dear All, I configured VAR Service Desk on SolMan EhP1 + SPS 20, Everything is good, but I have a problem when run report AI_SC_GET_SAP_CUSTOMER_NUMBERS. It can determine my customer numbers, but have only my installation number in table V_AIINSNRS.

  • Need help with IM notifications

    I have a centro and I do not reicieve alerta when i have an IM. I have a good friend who is deployed right now and his is the only way we talk! I miss the IM's all the time because i do not know they are there. same thing with Email - but i get the a

  • Toshiba L750-A218 BIOS 3.30, Fan Speed

    Hi, here is a new issue I am experiencing after the BIOS update. I feel the internal fans are spinning all the time by placing my hands near the keyboard. Fan speed according to Toshiba software is 50%+ while I am not doing anything. On the other han