URLs in ISO-8859 encoding. ?

Hello..


I am trying to open a URL in Google Maps from 4 variables filled via a form in Acrobat.

I use this Javascript code:

var address = getField("Adresse").value;

var Nr = getField("Nr").value;

var Postnr = getField("Postnr").value;

var a = getField("By").value;

var myURL = " " http://www.Google.dk/maps/place/ ' + Address + "+" + Nr + '+' + Postnr + '+' + by; .

app.launchURL (myURL, true);

But then that the 'ae', 'o' and 'a' on the variables, output URL is not correct. It's my production:

https://www.Google.dk/maps/place/H%E6vlingeb%E5nken+17+4681+Herf%F8lge

When you type these variables:

Skærmbillede 2016-02-11 kl. 09.01.08.png

So I somehow need to encode the URL to ISO-8859 or another encoding? If the 'ae', 'o' and 'a' characters are used correctly...

Is this possible?

In addition, you don't need a function to do this, simply add this line before the launchURL command:

myURL = encodeURI (myURL);

Tags: Acrobat

Similar Questions

  • convert to ISO 8859-1, UTF-8 encoding

    Hello

    My name is Os ' ut51109 SunOS 5.10 Generic_144500-19 sun4v sparc SUNW, T5440'.

    I want to change the encoding of the file existing in ISO 8859-1 to UTF - 8 m with using all temporary files as these m file will be done by an external table.

    Here is the command that I published in the script (ksh file)
    iconv-f ISO8859-1 t - UTF-8 file1.bcp > file1.bcp

    When the resulting script run file1 is empty (display 0 bytes).
    Please correct me or let me know the syntax to write data in the same file in UTF-8 format.

    Thank you
    Amandine

    You can't make the conversion of ISO 8859-1 to UTF - 8 in place because the UTF-8 version will be usually longer time (unless you convert a pure ASCII file, which is unnecessary in the first place conversion). Therefore, you need to replace what you haven't read yet. Instead, amounted to a new file with a temporary name, file the original and rename the temporary folder to the original. It is not that complicated.

    If the problem is that you want to replace a file that is already opened by the database, and then rename the first entering everything and then convert copies to the target.

    -Sergiusz

  • Info page says "ISO-8859-1" but Firfox displays the page in UTF - 8

    Only after you manually change the character encoding ISO - 8859 - 1 German Umlaute are displayed correctly.

    To see what that the http headers, a Web server is sending, you can use several programs, for example:

  • How to convert char Spanish AL32UTF8 to ISO-8859-1 with sqlplus in linux?

    I have the server 11g with NLS_CHARACTERSET with AL32UTF8.  I need to have a varchar2 column, which contains the Spanish character, converted to ISO-8859-1 the output of sqlplus.

    So, I put in the bash shell script

    'export NLS_LANG = AMERICAN_AMERICA. UTF8'

    or

    'export NLS_LANG = AMERICAN_AMERICA. AL32UTF8'

    And then, I don't

    iconv-f UTF-8--t TRANSLIT ISO_8859-1 / / infile.txt > outfile.txt

    Two NLS_LANG settings have the problem.

    For the two parameters of lang, if I

    file - bi infile.txt

    It gives text/plain; CharacterSet = utf-8

    However

    iconv translated

    Who Gomez in Gomez who.

    Why the e and o and others not translated correctly?

    How I translated the Spanish character correctly from the output of sqlplus?

    Thank you.

    The problem is that your data is stored in the form of decomposed Unicode, which is legal but rarely used for Western European languages.  'e' is stored as 'e' (0 x 65 = U + 0065) more combining acute accent (0xcc, 0 x 81 = U + 0301).  Most of simple conversion, including the conversion of standard Oracle client/server tools, do not take into account this and does not convert the characters broke into a character previously composed of ISO 8859-1. They are trying to convert each of the two codes regardless, 'e' performance as well as a replacement for the character of emphasis, that does not exist in ISO 8859-1. You see the result correctly in SQL Developer, because there is no conversion involved and the rendering of SQL Developer code is able to combine the two codes into a single character, as expected.

    As the 'e' and 'o' made up forms in Unicode and ISO 8859-1, the work around is to add the COMPOSITION function in your query. Thus, set NLS_LANG as I've mentioned previously and add new MESSAGE around the expressions of columns to your query.

    SELECT COMPOUND (title) OF...

    Thank you

    Sergiusz

  • CS4 config for charset = iso-8859-1

    Hello

    Y at - it somewhere in Dreamweaver cs4, where I can change the setting by default to the

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    For

    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"

    Thank you

    Hello

    Look here:

    http://help.Adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7EF 8a.html

    I remember CS3 is here (German DW):

    Hans G.

  • Polish fonts - ISO 8859-2 (Latin 2) - from the external xml file

    Hello

    I need to import the Polish text in my flashapplication. I load text from an external xml file.
    so far everything I try is unable to display special characters.

    When I encode the text, it works, but it's no choice...


    more than two things: I have to dynamically create the textfield (createTextField();), and the police must be incorporated.

    can someone tell me the solution of this problem?
    any help is appreciated!

    Thank you
    Marcin

    Hello

    here a solution that worked for me:
    I just had to change the language and location settings in windows and flash would take the right code of basic police...

  • Display of data URL on the server

    Hi there everyone,

    I'm trying to publish some simple GPS coordinates on my server for further processing. I have a servlet that accepts queries POST and the following code on the client side:

    public HttpConnection getHttpConnection (postData URLEncodedPostData) {}

    String _url = ""http://127.0.0.1: 8090/locationSpy/process.persistGPS ";"

    String _Type = "application/x-www-formulaires-urlencoded;

    HttpConnection con = null;

    try {}

    con = (HttpConnection) Connector.open (_url, Connector.WRITE);

    con.setRequestMethod (HttpConnection.POST);

    con.setRequestProperty ("Content-Type", _type);

    con.setRequestProperty ("Content-Length", String.valueOf (postData.getBytes () .length));

    con.setRequestProperty ("Content-Language", "en-US");

    } catch (IOException ioe) {}

    System.out.println ("IOException Message:" + ioe.getMessage ());

    ioe.printStackTrace ();

    }

    return con;

    }

    After establishing the HttpConnection I get the post data is coded as follows:

    public URLEncodedPostData getPostUrl (double latitude, longitude, altitude of float, int devicePIN) {}

    PostData URLEncodedPostData = new URLEncodedPostData ("iso-8859-1", false);

    postData.append ("userId", String.valueOf (devicePIN));

    postData.append ("latitude", String.valueOf (latitude));

    postData.append ("longitude", String.valueOf (longitude));

    postData.append ("altitude", String.valueOf (altitude));

    System.out.println ("= POST DATA =");

    System.out.println (postData.ToString ());

    return postData;

    }

    The sysout above prints the string encoded in exact URL, I expect so I then try to publish the data on server here:

    {} public postData Sub (HttpConnection con, URLEncodedPostData postData)

    try {}

    DataOutputStream out = con.openDataOutputStream ();

    System.out.println ("= DATA POST to WRITE =");

    System.out.println (postData.ToString ());

    out.writeChars (postData.toString ());

    System.out.println ("= FLUSHING OUTPUT =");

    out. Flush();

    System.out.println ("= OUTPUT CLOSED =");

    out. Close();

    } catch (IOException ioe) {}

    System.out.println ("postData: IOException message:" + ioe.getMessage ());

    ioe.printStackTrace ();

    }

    }

    Whenever I run the present of the application GET stuck to flush and, eventually, give my next IOException:

    postData: IOException message: Local connection has expired after ~ 120000

    No stack trace

    I tried to write message data as a byte array instead of a string with the same results. The server is running on the local computer, I start the MDS Simulator with the BB Simulator and the database is also running. Any ideas as to why the app keeps stuck on rinse?

    Thank you!

    Schalk

    Hello

    I actually found the problem, it was related to the following line:

    con = (HttpConnection) Connector.open (_url, Connector.WRITE);

    I just changed to:

    con = (HttpConnection) Connector.open (_url);

    and everything works!

  • Properly link a Flash Animation to a URL

    Hi people,

    I am running CS4, AS3. Thanks in advance to take a look at this.

    Asked me to tie a Flash banner ad to a URL. To do this, I created a new layer with a keyframe in frame 1, which spans the entire animation. In this layer, I entered the code ActionScript in REFERENCE 1. It works very well in several browsers, including Chrome and IE8 FF3.6 and works for the client. Then...

    Their webmaster by email by saying that he "did not all links in new banner." I don't know what that means and if he actually tested the code.

    They sent me an example of a previous developer, which is the REFERENCE 2.

    I compared it to what I wrote - that was generated by the "Publish" option in CS4. This is REFERENCE 3.

    I did something wrong? Everything works in all my tests, and they work for the customer.

    Looks like they missing you a lot of information in the header. It is much smaller than the header that generates the CS4. They also have a link under the <!-url is used in the movie-> comment. May - ensure that this affects performance? To my knowledge, it's obsolete. Maybe they used an older version of Flash?

    TYVM!

    REFERENCE 1: ACTIONSCRIPT TO MAKE the BANNER a LINK.

    stage.addEventListener)
    MouseEvent.CLICK,
    function(evt:MouseEvent):void
    {
    var url: String = " " http://www.URL.com/'; '.
    var window: String = "_blank";
    var request: URLRequest = new URLRequest (url);
    Try
    {
    navigateToURL (request, window);
    }
    catch (error)
    {
    trace ("Page not available. Please refresh this page to try again. ») ;
    }
    }
    );

    REFERENCE 2: EXAMPLE SENT BY WEBMASTER

    (NOTE VERY SMALL HEADER)

    " < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    148x300_af < title > < /title >
    < script language = "javascript" > AC_FL_RunContent = 0; < /script >
    < script src = "AC_RunActiveContent.js" language = "javascript" > < / script > "
    < / head >

    < body bgcolor = "#ffffff" >
    <! - url is used in the film - >
    " < a href =" http://www.URL.com/"> < / a > .
    <! - text used in the film - >
    <!-saved from url = (0013) subject: internet->
    < script language = "javascript" >
    If (AC_FL_RunContent == 0) {}
    Alert ("this page requires AC_RunActiveContent.js.");
    } else {}
    AC_FL_RunContent)
    'codebase', ' http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=9, 0,0,0 ',
    "width', '148."
    'height', '300',
    'src', '148x300_af ',.
    'quality', 'high ',.

    "pluginspage", ' http://www.Macromedia.com/go/getflashplayer ',
    "align", "middle",
    'play', 'true ',.
    'loop', 'true ',.
    "scale", "showall"
    'wmode', 'window ',.
    "devicefont", "false."
    'id', '148x300_af ',.
    'bgcolor', '#ffffff ',.
    'name', '148x300_af ',.
    'menu', 'true ',.
    'allowFullScreen', 'false. '
    "allowScriptAccess", "sameDomain",.
    'film', '148x300_af ',.
    "salign", "
    ); end AC code
    }
    < /script >
    < noscript >
    < object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase =" " http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=9, 0,0,0 "width ="148"height ="300"id ="148x300_af"align ="middle"> "
    < param name = "allowScriptAccess" value = "sameDomain" / >
    < param name = "allowFullScreen" value = "false" / >
    "" < param name = "movie" value = "148x300_af.swf" / > < param name = ' value ' = 'high' / > < param name = "bgcolor" = "#ffffff" value / > < embed src = "148x300_af.swf" quality = "high" bgcolor = "#ffffff" width = "148" height = "300" name = "148x300_af" align = "middle" allowScriptAccess = "sameDomain" allowFullScreen = "false" type = "application/x-shockwave-flash" pluginspage = " http://www.Macromedia.com/go/getflashplayer "/ > "
    < / object >
    < / noscript >
    < / body >
    < / html >

    REFERENCE 3: MY PUBLISHED HTML

    (NOTE HEAD LONGER AND MORE ROBUST)

    " < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < title > 1.3.1a < /title >
    < script language = "JavaScript" type = "text/javascript" >
    <!--
    v1.7
    Flash Player Version Detection
    Detect the type of browser Client
    Copyright 2005 - 2008 Adobe Systems Incorporated.  All rights reserved.
    isIE var = (navigator.appVersion.indexOf ("MSIE")! = - 1)? true: false;
    var isWin = (navigator.appVersion.toLowerCase () .indexOf ("win")! = - 1)? true: false;
    var isOpera = (navigator.userAgent.indexOf ("Opera")! = - 1)? true: false;
    function ControlVersion()
    {
    version of the var;
    var AXO;
    var e;
    NOTE: new ActiveXObject (strFoo) throws an exception if strFoo is not in the registry
    try {}
    version will be set for 7.X or more players
    AXO = new ActiveXObject ("ShockwaveFlash.ShockwaveFlash.7");
    version = axo. GetVariable ("$version");
    } catch (e) {}
    }
    If (! version)
    {
    try {}
    version will be set for 6.X players only

    AXO = new ActiveXObject ("ShockwaveFlash.ShockwaveFlash.6");

    installed Player is the 6.0 review
    GetVariable("$version") falls down for versions 6.0.22 to 6.0.29,
    so be careful.

    by default, the first public version
    version = "WIN 6,0,21,0";
    throw if AllowScripAccess does not exist (in force since 6.0r47)
    AXO. AllowScriptAccess = "always";
    Safe to call for 6.0r47 or higher
    version = axo. GetVariable ("$version");
    } catch (e) {}
    }
    }
    If (! version)
    {
    try {}
    version will be set to Player 4.X or 5.X
    AXO = new ActiveXObject ("ShockwaveFlash.ShockwaveFlash.3");
    version = axo. GetVariable ("$version");
    } catch (e) {}
    }
    }
    If (! version)
    {
    try {}
    version will be set to player 3.X
    AXO = new ActiveXObject ("ShockwaveFlash.ShockwaveFlash.3");
    version = "WIN 3,0,18,0";
    } catch (e) {}
    }
    }
    If (! version)
    {
    try {}
    version will be set to Player 2.X
    AXO = new ActiveXObject ("ShockwaveFlash.ShockwaveFlash");
    version = "WIN 2,0,0,11";
    } catch (e) {}
    version = - 1;
    }
    }

    Returns the version;
    }
    JavaScript helper needed to detect the version of Flash Player PlugIn information
    function GetSwfVer() {}
    NS/Opera version > = search plugin Flash plugin table 3
    var flashVer = - 1;

    If (navigator.plugins! = null & & navigator.plugins.length > 0) {}
    If (navigator.plugins ["Shockwave Flash 2.0"] | navigator.plugins ["Shockwave Flash"]) {}
    var swVer2 = ["Shockwave Flash 2.0"] navigator.plugins? " 2.0" : "";
    var flashDescription = navigator.plugins ["Shockwave Flash" + swVer2] .description;
    var descArray = flashDescription.split("");
    var tempArrayMajor = descArray [2].split(".");
    var versionMajor = tempArrayMajor [0];
    var versionMinor = tempArrayMajor [1];
    var versionRevision = descArray [3];
    If (versionRevision == "") {}
    versionRevision = descArray [4];
    }
    If (versionRevision [0] == "d") {}
    versionRevision = versionRevision.substring (1);
    } ElseIf (versionRevision [0] == 'r') {}
    versionRevision = versionRevision.substring (1);
    If (versionRevision.indexOf ("d") > 0) {}
    versionRevision = versionRevision.substring (0, versionRevision.indexOf ("d"));
    }
    }
    flashVer var = versionMajor + "." + versionMinor + "." + versionRevision;
    }
    }
    MSN/WebTV 2.6 supports Flash 4
    ElseIf (navigator.userAgent.toLowerCase().indexOf("webtv/2.6")! = - 1) flashVer = 4;
    WebTV 2.5 supports Flash 3
    ElseIf (navigator.userAgent.toLowerCase().indexOf("webtv/2.5")! = - 1) flashVer = 3;
    Old WebTV supports Flash 2
    ElseIf (navigator.userAgent.toLowerCase () .indexOf ("webtv")! =-1) flashVer = 2;
    ElseIf (isIE & & isWin & &! isOpera) {}
    flashVer = ControlVersion();
    }
    return flashVer;
    }
    When it is called with reqMajorVer, reqMinorVer, reqRevision returns true if this version or higher is available
    function DetectFlashVer (reqMajorVer, reqMinorVer, reqRevision)
    {
    versionStr = GetSwfVer();
    If (versionStr ==-1) {}
    Returns false;
    } else if (versionStr! = 0) {}
    If (isIE & & isWin & &! isOpera) {}
    Given "WIN 2,0,0,11".
    tempArray = versionStr.split("");     ['WIN', '2,0,0,11']
    tempString = tempArray [1];            '2,0,0,11 '.
    versionArray = tempString.split(",");    ['2', '0', '0', 11']
    } else {}
    versionArray = versionStr.split(".");
    }
    var versionMajor = versionArray [0];
    var versionMinor = versionArray [1];
    var versionRevision = versionArray [2];
    is the major.revision > = major.revision requested AND the minor version > = minor requested
    If (versionMajor > parseFloat (reqMajorVer)) {}
    Returns true;
    {} ElseIf (versionMajor == {parseFloat (reqMajorVer))}
    If (versionMinor > parseFloat (reqMinorVer))
    Returns true;
    {ElseIf (versionMinor == {parseFloat (reqMinorVer))}
    If (versionRevision > = parseFloat (reqRevision))
    Returns true;
    }
    }
    Returns false;
    }
    }
    function AC_AddExtension (src, ext)
    {
    If (src.indexOf('?')! = - 1).
    Return src.replace (/-? /, ext +'?) ') ;
    on the other
    return src + ext.
    }
    function AC_Generateobj (objAttrs, params, embedAttrs)
    {
    var str = ";
    If (isIE & & isWin & &! isOpera)
    {
    Str += "< object ';"
    for (var i in objAttrs)
    {
    Str += I + "=" "+ objAttrs [i] ' + '" '; "
    }
    Str += ' > ';
    for (var i in params)
    {
    Str += ' < param name = "" ' + i + ' "value ="' + params [i] + "" / > '; "
    }
    Str += ' < / object > ";
    }
    on the other
    {
    Str += "< embed ';"
    for (var i in embedAttrs)
    {
    Str += I + "=" "+ embedAttrs [i] ' + '" '; "
    }
    Str += "> < / embed > ';"
    }
    document. Write (STR);
    }
    function AC_FL_RunContent() {}
    var ret =
    AC_GetArgs
    (arguments, '.swf', 'film', ' clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 "')
    ' application/x-shockwave-flash ".
    );
    AC_Generateobj (ret.objAttrs, ret.params, ret.embedAttrs);
    }
    function AC_SW_RunContent() {}
    var ret =
    AC_GetArgs
    (arguments, '.dcr', 'src', ' clsid:166B1BCA-3F9C-11CF-8075-444553540000 "')
    null
    );
    AC_Generateobj (ret.objAttrs, ret.params, ret.embedAttrs);
    }
    function AC_GetArgs (args, ext, srcParamName, classid, mimeType) {}
    var ret = new Object();
    ret.embedAttrs = new Object();
    RET.params = new Object();
    ret.objAttrs = new Object();
    for (var i = 0; I < args.length; i = i + 2) {}
    var currArg is args [i] .toLowerCase ();.
    Switch (currArg) {}
    case "classid":
    break;
    case "pluginspage":
    ret.embedAttrs [args [i]] = args [i + 1];
    break;
    case 'src ':
    case "movie":
    args [i + 1] = AC_AddExtension (args [i + 1], ext);
    ret.embedAttrs ["src"] = args [i + 1];
    RET.params [srcParamName] = args [i + 1];
    break;
    case "onafterupdate":
    case "onbeforeupdate":
    case "onblur":
    case "oncellchange":
    case 'onclick ':
    case 'ondblclick ':
    case 'ondrag ':
    case "ondragend:
    case "ondragenter:
    case "ondragleave":
    case "ondragover":
    case 'ondrop:
    case "onfinish:
    case "onfocus":
    case "onhelp":
    case "onmousedown":
    case "onmouseup":
    case "onmouseover":
    case "onmousemove":
    case 'onmouseout ':
    case "onkeypress":
    case 'onkeydown ':
    case "onkeyup":
    case 'onload ':
    case 'onlosecapture ':
    case 'onpropertychange ':
    case 'onreadystatechange ':
    case 'onrowsdelete ':
    case "onrowenter":
    case "onrowexit":
    case "onrowsinserted":
    case 'onstart ':
    case "onscroll":
    case 'onbeforeeditfocus ':
    case 'onactivate ':
    case 'onbeforedeactivate ':
    'disabled ': case
    case 'type ':
    case 'codebase ':
    case "id":
    ret.objAttrs [args [i]] = args [i + 1];
    break;
    case 'width ':
    case 'height ':
    case 'align ':
    case 'vertical spacing:
    case 'horizontal spacing:
    case "class":
    case 'title ':
    case 'accesskey ':
    ' name ':
    case "tabindex":
    ret.embedAttrs [args [i]] = ret.objAttrs [args [i]] is args [i + 1];.
    break;
    by default:
    ret.embedAttrs [args [i]] = ret.params [args [i]] is args [i + 1];.
    }
    }
    ret.objAttrs ["classid"] = classid;
    If ret.embedAttrs ["type (mimeType)" "] = mimeType;
    return ret;
    }
    ->
    < /script >
    < / head >


    < body bgcolor = "#ffffff" >
    <! - url is used in the film - >
    <! - text used in the film - >
    <!-saved from url = (0013) subject: internet->
    < script language = "JavaScript" type = "text/javascript" >
    AC_FL_RunContent)
    'codebase', ' http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=10, 0,0,0 ',
    'width', '728'.
    '90', 'height',
    "src', '1.3.1a."
    'quality', 'high ',.
    "pluginspage", ' http://www.Adobe.com/go/getflashplayer_fr ',
    "align", "middle",
    'play', 'true ',.
    'loop', 'true ',.
    "scale", "showall"
    'wmode', 'window ',.
    "devicefont", "false."
    "id', '1.3.1a."
    'bgcolor', '#ffffff ',.
    "name", "1.3.1a."
    'menu', 'true ',.
    'allowFullScreen', 'false. '
    "allowScriptAccess", "sameDomain",.
    "film', '1.3.1a."
    "salign", "
    ); end AC code
    < /script >
    < noscript >
    < object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase =" " http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=10, 0,0,0 "width ="728"height ="90"id ="aperio1.3.1a"align ="middle"> "
    < param name = "allowScriptAccess" value = "sameDomain" / >
    < param name = "allowFullScreen" value = "false" / >
    " < param name ="movie"value ="aperio1.3.1a.swf"/ > < param name = ' value ' = 'high' / > < param name ="bgcolor"="#ffffff"value / > < embed src ="1.3.1a.swf"quality ="high"bgcolor ="#ffffff"width ="728"height ="90"name ="1.3.1a' align = "middle" allowScriptAccess = "sameDomain" allowFullScreen = "false" type = "application/x-shockwave-flash" pluginspage = " http://www.Adobe.com/go/getflashplayer_fr " />

    < / object >
    < / noscript >
    < / body >
    < / html >

    You should check with the person who made the comment on the links-, it is not clear if this expression may refer to the difference between these lines 2 and 3.

    2)


    http://www.URL.com/">."

    3)

    So, you just add a link after this line to appease? So ask you is your best way to resolution for this.

    For what is your reference to a more robust head section, there is probably no difference between the two - they both use the AC_FL_RunContent encoding to embed the Flash file.   The main part of the just REF3 contains all javascript code that is in the file that they are binding in the following line...

  • How to make a default encoding

    I would like to make default encoding of unicode-8 character, but when I try to do as the value, it does not work. Remember all the other settings that I use and it's the only one who doesn't.

    I don't have this problem often, but it's often enough to want to change permanently. Any help would be appreciated.

    I can't set the coding or the other, if I remove ISO-8859-1, it is automatically added. But thanks to advice on cor - el
    See also tools > Page Info > general

    When the html code for a page includes < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    I see the text in UTF8. So I can see my Greek characters.

    ozman812, that's what we need to help to perhaps? I'm experimenting myself a bit with html these days.

  • How do activate you the automatic detection of character encoding

    Firefox 9.0.1, Windows 7 Premium:
    "Point of view", the coding of characters, automatic detection is checked 'Off '. I would like to say 'On '.

    How can I do this?

    Automatic detection is usually associated with a specific 8-bit ISO - 8859 - xx Windows encoding, or if the default ISO-8859-1 Western is not used.

    It is best to switch to UTF-8encoding en all files to avoid any problem of coding and configure web servers accordingly.

  • cp1252 encoding

    Hello

    I'm developing an application using JDE 4.2.1. The application communicates with http Post send content XML encoded in ISO-8859-1 and receives another XML encoded with cp1252 (windows-1252 encoding). I can't change the encoding in the answer, so I need to 'recode' to ISO-8859-1 to analyze.

    I found that the conversion between these encodings has a problem with certain characters, including "<' and="" '="">", so I can't properly analyze.

    I receive the information in an InputStream I read with InputStream.available and write each byte in a ByteArrayOutputStream. Then I transform transform into a String in this way:

    String xmlFile = new String (out.toByteArray (), "cp1252");

    If I print it in the console those contradictory characters are not well printed, then I start to think that "cp1252" encoding is not supported by default. I'm wrong?

    Y at - it somehow to transform a string containing the xmlFIle encoded with cp1252 to another string encoded in ISO-8859-1?

    Thanks in advance.

    You can try adding the header "x-rim-transcode-content' with the 'none' value both the request and the response. That could help.

  • How to get back to save after update (IE add a url to the variable)

    I want to put a link to return to the page view record after update.  I followed the insrtuctio Dreamweaver one added after the url of the page in the update behaviors:

    ? recordID = <? PHP echo $row_ recordsetName [' fieldName '];? >

    However, the page does not load, but gives this error:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expected T_STRING or T_VARIABLE or T_NUM_STRING in C:\UwAmp\www\testmypms\update_spec_rx.php on line 77

    Here is the code in the page:

    <? php require_once('Connections/testmypms.php');? >

    <? PHP

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    $theValue = (! get_magic_quotes_gpc())? addslashes ($TheValue): $theValue;

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "updateSpecRx")) {}

    $updateSQL = sprintf ("UPDATE spec_rx SET spec_rx_date = %s FK_user_id = %s spec_rx_rsph = %s, spec_rx_rcyl = %s, spec_rx_raxis = %s, spec_rx_rhprism = %s, spec_rx_rhprismbase = %s, spec_rx_rvprism = %s, spec_rx_rvprismbase = %s, spec_rx_rnadd = %s, spec_rx_rnhprism = %s, spec_rx_rnhprismbase = %s, spec_rx_rnvprism = %s spec_rx_rnvprismbase = %s spec_rx_rintadd = %s spec_rx_rinthprism = %s, spec_rx_rinthprismbase = %s, spec_rx_rintvprism = %s, spec_rx_rintvprismbase = %s, spec_rx_lsph = %s, spec_rx_lcyl = %s, spec_rx_laxis = %s, spec_rx_lhprism = %s, spec_rx_lhprismbase = %s, spec_rx_lvprism = %s, spec_rx_lvprismbase = %s, spec_rx_lintadd = %s, spec_rx_linthprism = %s, spec_rx_linthprismbase = %s spec_rx_lintvprism = %s spec_rx_lintvprismbase = %s spec_rx_lnadd = %s, spec_rx_lnhprism = %s, spec_rx_lnhprismbase = %s, spec_rx_lnvprism = %s spec_rx_lnvprismbase = %s ext_rx = %s spec_rx_id = %s WHERE',

    GetSQLValueString ($_POST ['rHprism'], 'day'),

    GetSQLValueString ($_POST ["userID"], "int").

    GetSQLValueString ($_POST ['rsph'], "double").

    GetSQLValueString ($_POST ['rcyl'], "double").

    GetSQLValueString ($_POST ['raxis'], "double").

    GetSQLValueString ($_POST ['rHprism'], "double").

    GetSQLValueString ($_POST ['rHprismbase'], "text").

    GetSQLValueString ($_POST ['rVprism'], "double").

    GetSQLValueString ($_POST ['rVprismbase'], "text").

    GetSQLValueString ($_POST ['rNradd'], "double").

    GetSQLValueString ($_POST ['rNrHprism'], "double").

    GetSQLValueString ($_POST ['rNrHprismbase'], "text").

    GetSQLValueString ($_POST ['rNrVprism'], "double").

    GetSQLValueString ($_POST ['rNrVprismbase'], "text").

    GetSQLValueString ($_POST ['rIntadd'], "double").

    GetSQLValueString ($_POST ['rIntHprism'], "double").

    GetSQLValueString ($_POST ['rIntHprismbase'], "text").

    GetSQLValueString ($_POST ['rIntVprism'], "double").

    GetSQLValueString ($_POST ['rIntVprismbase'], "text").

    GetSQLValueString ($_POST ['lsph'], "double").

    GetSQLValueString ($_POST ['lcyl'], "double").

    GetSQLValueString ($_POST ["'laxis"], "double").

    GetSQLValueString ($_POST ['lHprism'], "double").

    GetSQLValueString ($_POST ['lHprismbase'], "text").

    GetSQLValueString ($_POST ['lVprism'], "double").

    GetSQLValueString ($_POST ['lVprismbase'], "text").

    GetSQLValueString ($_POST ['lIntadd'], "double").

    GetSQLValueString ($_POST ['lIntHprism'], "double").

    GetSQLValueString ($_POST ['lIntHprismbase'], "text").

    GetSQLValueString ($_POST ['lIntVprism'], "double").

    GetSQLValueString ($_POST ['lIntVprismbase'], "text").

    GetSQLValueString ($_POST ['lNradd'], "double").

    GetSQLValueString ($_POST ['lNrHprism'], "double").

    GetSQLValueString ($_POST ['lNrHprismbase'], "text").

    GetSQLValueString ($_POST ['lNrVprism'], "double").

    GetSQLValueString ($_POST ['rNrVprismbase'], "text").

    GetSQLValueString (isset($_POST['extRx'])? ('true': ' ', 'definition', '1', '0').

    GetSQLValueString ($_POST ['SpecRxID'], "int"));

    @mysql_select_db ($database_testmypms, $testmypms);

    $Result1 = mysql_query ($updateSQL, $testmypms) or die (mysql_error ());

    $updateGoTo = "spec_rx4.php";

    If (isset {}

    $updateGoTo. = (strpos ($updateGoTo, '?'))? « & » : « ? » ;

    $updateGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $updateGoTo));

    }

    / * date_default_timezone_set('Europe/London');

    $date = strtotime($_POST['specRxDate']);

    $_POST ['specRxDate'] = date("Y-m-d",$date); */

    $currentPage = $_SERVER ['PHP_SELF'];

    $maxRows_spec_rx = 1;

    $pageNum_spec_rx = 0;

    If (isset($_GET['pageNum_spec_rx'])) {}

    $pageNum_spec_rx = $_GET ['pageNum_spec_rx'];

    }

    $startRow_spec_rx = $pageNum_spec_rx * $maxRows_spec_rx;

    $colname_spec_rx = "1";

    If (isset($_GET['spec_RxID'])) {}

    $colname_spec_rx = (get_magic_quotes_gpc())? $_GET ['spec_RxID']: addslashes($_GET['spec_RxID']);

    }

    @mysql_select_db ($database_testmypms, $testmypms);

    $query_spec_rx = sprintf ("SELECT demographics.px_id, demography. FK_title_id, demographics.firstname, demographics.surname, title.title, title.title_id, spec_rx.spec_rx_id, spec_rx. FK_px_id, DATE_FORMAT (spec_rx.spec_rx_date, ' % d-% m-% Y') as formatted_rx_date, spec_rx. FK_user_id, spec_rx.spec_rx_rsph, spec_rx.spec_rx_rcyl, spec_rx.spec_rx_raxis, spec_rx.spec_rx_rhprism, spec_rx.spec_rx_rhprismbase, spec_rx.spec_rx_rvprism, spec_rx.spec_rx_rvprismbase, spec_rx.spec_rx_rnadd, spec_rx.spec_rx_rnhprism, spec_rx.spec_rx_rnhprismbase, spec_rx.spec_rx_rnvprism, spec_rx.spec_rx_rnvprismbase, spec_rx.spec_rx_rintadd, spec_rx.spec_rx_rinthprism, spec_rx.spec_rx_rinthprismbase spec_rx.spec_rx_rintvprism, spec_rx.spec_rx_rintvprismbase, spec_rx.spec_rx_lsph, spec_rx.spec_rx_lcyl, spec_rx.spec_rx_laxis, spec_rx.spec_rx_lhprism, spec_rx.spec_rx_lhprismbase, spec_rx.spec_rx_lvprism, spec_rx.spec_rx_lvprismbase, spec_rx.spec_rx_lintadd, spec_rx.spec_rx_linthprism, spec_rx.spec_rx_linthprismbase, spec_rx.spec_rx_lintvprism, spec_rx.spec_rx_lintvprismbase, spec_rx.spec_rx_lnadd, spec_rx.spec_rx_lnhprism spec_rx.spec_rx_lnhprismbase, spec_rx.spec_rx_lnvprism, spec_rx.spec_rx_lnvprismbase, spec_rx.ext_rx FROM spec_rx, demographics, title WHERE spec_rx.spec_rx_id = %s AND spec_rx. FK_px_id = demographics.px_id AND demography. (FK_title_id = title.title_id", $colname_spec_rx);

    $query_limit_spec_rx = sprintf ("%s LIMIT %d, %d", $query_spec_rx, $startRow_spec_rx, $maxRows_spec_rx);

    $spec_rx = mysql_query ($query_limit_spec_rx, $testmypms) or die (mysql_error ());

    $row_spec_rx = mysql_fetch_assoc ($spec_rx);

    If (isset($_GET['totalRows_spec_rx'])) {}

    $totalRows_spec_rx = $_GET ['totalRows_spec_rx'];

    } else {}

    $all_spec_rx = mysql_query ($query_spec_rx);

    $totalRows_spec_rx = mysql_num_rows ($all_spec_rx);

    }

    $totalPages_spec_rx = ceil($totalRows_spec_rx/$maxRows_spec_rx)-1;

    @mysql_select_db ($database_testmypms, $testmypms);

    $query_users = "SELECT users.user_id, users.username FROM users";

    $users = mysql_query ($query_users, $testmypms) or die (mysql_error ());

    $row_users = mysql_fetch_assoc ($users);

    $totalRows_users = mysql_num_rows ($users);

    $queryString_spec_rx = "";

    If (! empty($_SERVER['QUERY_STRING'])) {}

    $params = explode ("&", $_SERVER ['QUERY_STRING']);

    $newParams = array();

    {foreach ($params as $param)

    If (stristr ($param, "pageNum_spec_rx") == false & &)

    stristr ($param, "totalRows_spec_rx") == false) {}

    return ($newParams, $param);

    }

    }

    If (count ($newParams)! = 0) {}

    $queryString_spec_rx = '& '. htmlentities (implode ("&", $newParams));

    }

    }

    $queryString_spec_rx = sprintf ("& totalRows_spec_rx = %d %s", $totalRows_spec_rx, $queryString_spec_rx);

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"

    < title > change Rx Spec < /title >

    < / head >

    < body >

    < p > modify Spec Rx < /p >

    < p > <? PHP echo $row_spec_rx ["px_id"];? > < / p >

    < p > <? PHP echo $row_spec_rx ['title'];? > <? PHP echo $row_spec_rx ["FirstName"];? > <? PHP echo $row_spec_rx ['name'];? > < / p >

    < form action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "updateSpecRx" id = "updateSpecRx" >

    < table border = "1" cellpadding = "5" cellspacing = "1" >

    < b >

    < td > < table >

    < td >

    < td > <? php date_default_timezone_set('Europe/London');? >

    < input name = "specRxDate" type = "text" id = "specRxDate" value = "<?" PHP echo $row_spec_rx ["formatted_rx_date"];? ">" size = "10" maxlength = "10" <? PHP echo "value ="'.date("d-m-Y"). "" » ' ; ? > > < table >

    < td > < input name = "SpecRxID" type = "text" id = "SpecRxID" value = "<?" PHP echo $row_spec_rx ["spec_rx_id"];? ">" size = "2" maxlength = "2" > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    SPH < td > < table >

    Cyl < td > < table >

    Axis of < td > < table >

    HPrism < td > < table >

    HPrismBase < td > < table >

    VPrism < td > < table >

    VPrismBase < td > < table >

    NrAdd < td > < table >

    NrHPrism < td > < table >

    NrHPrismBase < td > < table >

    NrVPrism < td > < table >

    NrVPrismBase < td > < table >

    IntAdd < td > < table >

    IntHPrism < td > < table >

    IntHPrismBase < td > < table >

    IntVPrism < td > < table >

    IntVPrismBase < td > < table >

    < /tr >

    < b >

    < td > < table > R

    < td > < input name = "rsph" type = "text" id = "rsph" value = "<?" PHP echo $row_spec_rx ["spec_rx_rsph"];? ">" size = "6" maxlength = "6" >

    < table >

    < td > < input name = "rcyl" type = "text" id = "rcyl" value = "<?" PHP echo $row_spec_rx ["spec_rx_rcyl"];? ">" size = "6" maxlength = "6" >

    < table >

    < td > < input name = "raxis" type = "text" id = "raxis" value = "<?" PHP echo $row_spec_rx ["spec_rx_raxis"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < input name = "rHprism" type = "text" id = "rHprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_rhprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "rHprismbase" id = "rHprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rhprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'OUT' <? PHP if (!) () strcmp ("OUT", $row_spec_rx ['spec_rx_rhprismbase']))) {echo "SELECTED" ;}? > > OUT </option >

    < option value = 'IN' <? PHP if (!) () strcmp ("IN", $row_spec_rx ['spec_rx_rhprismbase']))) {echo "SELECTED" ;}? > > IN </option >

    < / select > < table >

    < td > < input name = "rVprism" type = "text" id = "rVprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_rvprism"];? ">" Size = "5" maxlength = "5" >

    < table >

    < td > < select name = "rVprismbase" id = "rVprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rnvprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'UP' <? PHP if (!) () strcmp ("UP", $row_spec_rx ['spec_rx_rnvprismbase']))) {echo "SELECTED" ;}? > > UP </option >

    < option value = "DN" <? PHP if (!) () strcmp ("DN", $row_spec_rx ['spec_rx_rnvprismbase']))) {echo "SELECTED" ;}? > > DN </option >

    < / select > < table >

    < td > < input name = "rNradd" type = "text" id = "rNradd" value = "<?" PHP echo $row_spec_rx ["spec_rx_rnadd"];? ">" size = "6" maxlength = "6" > < table >

    < td > < input name = "rNrHprism" type = "text" id = "rNrHprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_rnhprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "rNrHprismbase" id = "rNrHprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rnhprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'OUT' <? PHP if (!) () strcmp ("OUT", $row_spec_rx ['spec_rx_rnhprismbase']))) {echo "SELECTED" ;}? > > OUT </option >

    < option value = 'IN' <? PHP if (!) () strcmp ("IN", $row_spec_rx ['spec_rx_rnhprismbase']))) {echo "SELECTED" ;}? > > IN </option >

    < / select > < table >

    < td > < input name = "rNrVprism" type = "text" id = "rNrVprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_rnvprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "rNrVprismbase" id = "rNrVprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rnvprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'UP' <? PHP if (!) () strcmp ("UP", $row_spec_rx ['spec_rx_rnvprismbase']))) {echo "SELECTED" ;}? > > UP </option >

    < option value = "DN" <? PHP if (!) () strcmp ("DN", $row_spec_rx ['spec_rx_rnvprismbase']))) {echo "SELECTED" ;}? > > DN </option >

    < / select > < table >

    < td > < input name = "rIntadd" type = "text" id = "rIntadd" value = "<?" PHP echo $row_spec_rx ["spec_rx_rintadd"];? ">" size = "6" maxlength = "6" > < table >

    < td > < input name = "rIntHprism" type = "text" id = "rIntHprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_rinthprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "rIntHprismbase" id = "rIntHprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rinthprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'OUT' <? PHP if (!) () strcmp ("OUT", $row_spec_rx ['spec_rx_rinthprismbase']))) {echo "SELECTED" ;}? > > OUT </option >

    < option value = 'IN' <? PHP if (!) () strcmp ("IN", $row_spec_rx ['spec_rx_rinthprismbase']))) {echo "SELECTED" ;}? > > IN </option >

    < / select > < table >

    < td > < input name = "rIntVprism" type = "text" id = "rIntVprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_rintvprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "rIntVprismbase" id = "rIntVprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rintvprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'UP' <? PHP if (!) () strcmp ("UP", $row_spec_rx ['spec_rx_rintvprismbase']))) {echo "SELECTED" ;}? > > UP </option >

    < option value = "DN" <? PHP if (!) () strcmp ("DN", $row_spec_rx ['spec_rx_rintvprismbase']))) {echo "SELECTED" ;}? > > DN </option >

    < / select > < table >

    < /tr >

    < b >

    < td > < table > L

    < td > < input name = "lsph" type = "text" id = "lsph" value = "<?" PHP echo $row_spec_rx ["spec_rx_lsph"];? ">" size = "6" maxlength = "6" >

    < table >

    < td > < input name = "lcyl" type = "text" id = "lcyl" value = "<?" PHP echo $row_spec_rx ["spec_rx_lcyl"];? ">" size = "6" maxlength = "6" >

    < table >

    < td > < input name = "laxis" type = "text" id = "laxis" value = "<?" PHP echo $row_spec_rx ["spec_rx_laxis"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < input name = "lHprism" type = "text" id = "lHprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_lhprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "lHprismbase" id = "lHprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_lhprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'OUT' <? PHP if (!) () strcmp ("OUT", $row_spec_rx ['spec_rx_lhprismbase']))) {echo "SELECTED" ;}? > > OUT </option >

    < option value = 'IN' <? PHP if (!) () strcmp ("IN", $row_spec_rx ['spec_rx_lhprismbase']))) {echo "SELECTED" ;}? > > IN </option >

    < / select > < table >

    < td > < input name = "lVprism" type = "text" id = "lVprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_lvprism"];? ">" Size = "5" maxlength = "5" >

    < table >

    < td > < select name = "lVprismbase" id = "lVprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_rvprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'UP' <? PHP if (!) () strcmp ("UP", $row_spec_rx ['spec_rx_rvprismbase']))) {echo "SELECTED" ;}? > > UP </option >

    < option value = "DN" <? PHP if (!) () strcmp ("DN", $row_spec_rx ['spec_rx_rvprismbase']))) {echo "SELECTED" ;}? > > DN </option >

    < / select > < table >

    < td > < input name = "lNradd" type = "text" id = "lNradd" value = "<?" PHP echo $row_spec_rx ["spec_rx_lnadd"];? ">" size = "6" maxlength = "6" > < table >

    < td > < input name = "lNrHprism" type = "text" id = "lNrHprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_lnhprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "lNrHprismbase" id = "lNrHprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_lnhprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'OUT' <? PHP if (!) () strcmp ("OUT", $row_spec_rx ['spec_rx_lnhprismbase']))) {echo "SELECTED" ;}? > > OUT </option >

    < option value = 'IN' <? PHP if (!) () strcmp ("IN", $row_spec_rx ['spec_rx_lnhprismbase']))) {echo "SELECTED" ;}? > > IN </option >

    < / select > < table >

    < td > < input name = "lNrVprism" type = "text" id = "lNrVprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_lnvprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "rNrVprismbase" id = "rNrVprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_lnvprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'UP' <? PHP if (!) () strcmp ("UP", $row_spec_rx ['spec_rx_lnvprismbase']))) {echo "SELECTED" ;}? > > UP </option >

    < option value = "DN" <? PHP if (!) () strcmp ("DN", $row_spec_rx ['spec_rx_lnvprismbase']))) {echo "SELECTED" ;}? > > DN </option >

    < / select > < table >

    < td > < input name = "lIntadd" type = "text" id = "lIntadd" value = "<?" PHP echo $row_spec_rx ["spec_rx_lintadd"];? ">" size = "6" maxlength = "6" > < table >

    < td > < input name = "lIntHprism" type = "text" id = "lIntHprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_linthprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "lIntHprismbase" id = "lIntHprismbase" >

    < option value = "" > < / option >

    < option value = 'OUT' > ON < / option >

    < option value = 'IN' > IN < / option >

    < / select > < table >

    < td > < input name = "lIntVprism" type = "text" id = "lIntVprism" value = "<?" PHP echo $row_spec_rx ["spec_rx_lintvprism"];? ">" Size = "5" maxlength = "5" > < table >

    < td > < select name = "lIntVprismbase" id = "lIntVprismbase" >

    < option value = "" <? " PHP if (!) () strcmp ("", $row_spec_rx ['spec_rx_lintvprismbase']))) {echo "SELECTED" ;}? > > < / option >

    < option value = 'UP' <? PHP if (!) () strcmp ("UP", $row_spec_rx ['spec_rx_lintvprismbase']))) {echo "SELECTED" ;}? > > UP </option >

    < option value = "DN" <? PHP if (!) () strcmp ("DN", $row_spec_rx ['spec_rx_lintvprismbase']))) {echo "SELECTED" ;}? > > DN </option >

    < / select > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < input name = "pxID" type = "text" id = "pxID" value = "<?" PHP echo $row_spec_rx ["px_id"];? ">" size = "3" maxlength = "3" > < table >

    < td colspan = "4" > < input name = "Update" type = "submit" id = "Update" value = "Update" > < table >

    < td > < select name = "userID" id = "userID" >

    <? PHP

    {}

    ? >

    < option value = "<?" PHP echo $row_users ['user_id']? ' > ' > <? PHP echo $row_users ["username"]? > < / option >

    <? PHP

    } While ($row_users = mysql_fetch_assoc ($users));

    $rows = mysql_num_rows ($users);

    If ($rows > 0) {}

    mysql_data_seek ($users, 0);

    $row_users = mysql_fetch_assoc ($users);

    }

    ? >

    < / select > < table >

    < td > external

    < input <? PHP if (!) ((strcmp($row_spec_rx['ext_rx'],1)))) {echo 'checked' ;}? > name = "extRx" type = "checkbox" id = "extRx" value = "checkbox" > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_update" value = "updateSpecRx" >

    < / make >

    < p > < / p >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($spec_rx);

    mysql_free_result ($Users);

    ? >

    Thanks for any help

    Resolves this post:

    How to pass a URL parameter after update?

  • Apache, sending Transfer-Encoding: segmented

    Hello everyone

    I use PS3 OSB, I have the typical scenario (Proxy of Service of Business service + message flow). This Business Service points to a web service located on port 80 on a HP Apache - UX (Unix).
    The path that I use is: http://XX.XX.XX.XX:80 / webservices/XXXX/people
    Using soapUI 4.0.1' ve tried to use the physical WSDL URL pointing to the previous.
    I do requests and it works. But when I do it with me the OSB console marks the following trace:


    HTTP/1.1 * 411 length required * Date: Monday, January 14, 2013 15:34:16 GMT Server: Apache/2.0.59 HP-UX_Apache-based_Web_Server (Unix) DAV/2 mod_fastcgi/2.4.6 Content-Length: 368 connection: close Content-Type: text/html; charset = iso-8859-1
    <! DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0 / / BY" > ".
    < html > < head >
    < title > 411 length required < /title >
    < / head > < body >
    Length required
    < p > an application for the POST method requires a length of valid content.
    < /p >
    < hr >
    < address > Apache/2.0.59 HP-UX_Apache-based_Web_Server (Unix) DAV/2 mod_fastcgi/2.4.6 Server at XX. XX. XX. XX Port 80 < / address >
    < body / > < / html >

    This last one I captured using Wireshark

    In fact, enter the original query and makes OSB have stuck in the soapenv of SoapUI and it works

    Could someone guide me with this error please?

    Thanks in advance

    Hello

    Go to the page of Configuration of HTTP Transport service of the company and in the advanced settings, disable 'Use segmented streaming Mode'...

    Let me know how it goes...

    See you soon,.
    Vlad

  • How can I use VB Encoding.UTF8.GetBytes () and System.Text.Encoding.Default.GetBytes () in actionscript can someone help me?

    How can I use it in the action script. My VB code is more

    Encoding.UTF8.GetBytes ("String") and System.Text.Encoding.Default.GetBytes ("char table")

    Thank you. !

    Udit Bhardwaj

    I love the way to convert as a result

    Encoding.UTF8.GetBytes ("String") is in ActionScript:

    YourByteArray.writeMultiByte ("String", "iso-8859-1");

    And

    System.Text.Encoding.Default.GetBytes ("char table")

    YourByteArray.writeMultiByte ("String", "String");

    Thank you for your suggestions to moccamaximum

    Thank you!

    Udit Bhardwaj

  • Redirect to different URLS depending on the entry in the database.

    I have a login page that I want to redirect my mysql database to the user based on the value in my "Auth" category.  I'm trying to figure out how to get the login to redirect if he sees the 'HE' in the 'Auth' that he goes to indexil.php, "IA" goes to indexia.php and I also FL and NV to redirect to their corresponding pages.  Hoping someone can help me with that.  Here's the code that Dreamweaver created.

    Login page

    <? php require_once('.. / Connections/Users.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    ? >

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['username'])) {}

    $loginUsername = $_POST ['username'];

    $password = $_POST ["password"];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "... / Members / ';"

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_Users, $Users);

    $LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $Users) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div align = "center" >

    < p > < / p >

    < p > < span class = "largebold" > forms connection </span > < / p >

    < name of the form = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"

    < p > user name:

    < name of entry = "username" type = "text" id = "username" >

    < /p >

    < p > password:

    < name of entry = "password" type = "password" id = "password" >

    < /p >

    < p >

    < input type = "submit" name = "Submit" value = "Login" >

    < /p >

    < / make >

    < p >

    <!--right end-->

    < /p >

    < / div >

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    index page

    <? PHP include ('inc_auth.php')? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div id = "left" >

    <? PHP include ('inc_formselector.php')? >

    < / div > <! - end left - >

    <!--right end-->

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    inc_auth page


    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = "";

    $MM_donotCheckaccess = "true";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.

    So, we know that a user is NOT logged if this Session variable is empty.

    If (! empty ($UserName)) {}

    In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.

    Analyze the channels in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    If (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

    }

    Or, you can restrict access to only certain users based on their user name.

    If (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

    }

    If (($strUsers == "") & & true) {}

    $isValid = true;

    }

    }

    return $isValid;

    }

    $MM_restrictGoTo = 'login.php ';

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset ($QUERY_STRING) & & strlen ($QUERY_STRING) > 0)

    $MM_referrer. = « ? ». $QUERY_STRING;

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    }

    ? >

    I hope this is all to help me on this.  I worked on this NCB for a few weeks now.  I can't get one of the 4 redirects to work.   Thanks in advance

    It works very well.

    What it does is to select 'Auth' from the 'users' table that corresponds to the "Username" and "Password" and assigns the name of the page (indexil.php) that must be inserted into the database field 'Auth' to a variable named $Auth

    Connect to the database server

    mysql_connect ("xxxxxxx", "xxxxx", "xxxxxxx") or die (mysql_error ());

    Select database

    @mysql_select_db ("XXXXXXXXXXX") or die (mysql_error ());

    Select the url

    $strSQL = "SELECT authentication OF USERS WHERE Uname = '$loginUsername' AND Pword ="$password "";

    $rs = mysql_query ($strSQL);

    While ($row = {mysql_fetch_array ($rs))}

    $Auth = $row ["Auth"];

    Header ("Location:".) $Auth);

Maybe you are looking for

  • Why the HDD shows 149GB instead of 160 GB in Windows Vista

    I had corrected my system using the window vista recovery CD. At first when I bought the system that I could see the 160 GB HARD drive capacity, however on the formatting system I now don't see 149 GB. Can someone let me know how this problem can be

  • Can NOR-DAQmx application read a virtual channel with two independent

    Two standalone applications OR-DAQmx need to read the same virtual channels of the same material at a different frequency at the same time. Is this possible? Thank you

  • Secure the workspace / personal work space issue

    Hello http://docs.BlackBerry.com/en/smartphone_users/deliverables/47561/als1342454475197.jsp Based on the secure and personal workspace. I have an application that works perfectly well in the 'personal workspace". It can access PIN, etc email account

  • Why my brush air suddenly pixelated

    Yesterday, I tried to do a regular gradient with the Brush tool effect, but then realized that he created ugly, restless fades as if I was using the spray paint tool in MS PAINT. I don't know why this is happening but I really need him to go back to

  • No single stop in StartupShutdown, prefix

    Hi allI am porting my second CS6 PlugIn at CC2014. Are the formal syntactic changes, but the PlugIn causes a crash of InDesign.So I took my door PlugIn recently successfully, deleted all the c files and the resource and added some of the files-c + th