Professional Web Applications Themes

#40554 [NEW]: DomElement->set_attribute() for french characters - PHP Bugs

From: vijijvs at yahoo dot co dot in Operating system: Mandrake linux PHP version: 4.4.5 PHP Bug Type: DOM XML related Bug description: DomElement->set_attribute() for french characters Description: ------------ When "/home/viji/Endroit de protection de caractères spéciaux" is passed as argument to DomElement->set_attribute() function, the french letters è and é get continued...

  1. #1

    Default #40554 [NEW]: DomElement->set_attribute() for french characters

    From: vijijvs at yahoo dot co dot in
    Operating system: Mandrake linux
    PHP version: 4.4.5
    PHP Bug Type: DOM XML related
    Bug description: DomElement->set_attribute() for french characters

    Description:
    ------------
    When "/home/viji/Endroit de protection de caractères spéciaux" is passed
    as argument to DomElement->set_attribute() function, the french letters è
    and é get converted into 貥 and 飩.

    Php version im using is 4.3.9 and Apache 1.33.


    Note:
    =====

    Tried by using utf8_encode() and utf8_decode() before setting value for
    the attribute.

    Reproduce code:
    ---------------
    DomElement->set_attribute(Name, "/home/viji/Endroit de protection de
    caractères spéciaux");

    Expected result:
    ----------------
    <Location><Path Name="/home/viji/Endroit de protection de caractères
    spéciaux" /></Location>

    Actual result:
    --------------
    <Location><Path Name="/home/viji/Endroit de protection de caract&#x8CA5;s
    sp&#x98E9;aux" /></Location>

    --
    Edit bug report at [url]http://bugs.php.net/?id=40554&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40554&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40554&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40554&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40554&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40554&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40554&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40554&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40554&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40554&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40554&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40554&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40554&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40554&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40554&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40554&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40554&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40554&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40554&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40554&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40554&r=mysqlcfg[/url]
    vijijvs at yahoo dot co dot in Guest

  2. #2

    Default #40554 [Bgs->Opn]: DomElement->set_attribute() for french characters

    ID: 40554
    User updated by: vijijvs at yahoo dot co dot in
    Reported By: vijijvs at yahoo dot co dot in
    -Status: Bogus
    +Status: Open
    Bug Type: DOM XML related
    Operating System: Mandrake linux
    PHP Version: 4.4.5
    New Comment:

    Wants to fix with this version itself.

    Updating to latest version leads to problem in our environment and it
    is quite risk.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-20 10:48:51] [email]tony2001@php.net[/email]

    Thank you for taking the time to report a problem with PHP.
    Unfortunately you are not using a current version of PHP --
    the problem might already be fixed. Please download a new
    PHP version from [url]http://www.php.net/downloads.php[/url]

    If you are able to reproduce the bug with one of the latest
    versions of PHP, please change the PHP version on this bug report
    to the version you tested and change the status back to "Open".
    Again, thank you for your continued support of PHP.



    ------------------------------------------------------------------------

    [2007-02-20 10:42:27] vijijvs at yahoo dot co dot in

    Description:
    ------------
    When "/home/viji/Endroit de protection de caractères spéciaux" is
    passed as argument to DomElement->set_attribute() function, the french
    letters è and é get converted into &#x8CA5; and &#x98E9;.

    Php version im using is 4.3.9 and Apache 1.33.


    Note:
    =====

    Tried by using utf8_encode() and utf8_decode() before setting value for
    the attribute.

    Reproduce code:
    ---------------
    DomElement->set_attribute(Name, "/home/viji/Endroit de protection de
    caractères spéciaux");

    Expected result:
    ----------------
    <Location><Path Name="/home/viji/Endroit de protection de caractères
    spéciaux" /></Location>

    Actual result:
    --------------
    <Location><Path Name="/home/viji/Endroit de protection de
    caract&#x8CA5;s sp&#x98E9;aux" /></Location>


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40554&edit=1[/url]
    vijijvs at yahoo dot co dot in Guest

  3. #3

    Default #40554 [Opn]: DomElement->set_attribute() for french characters

    ID: 40554
    User updated by: vijijvs at yahoo dot co dot in
    Reported By: vijijvs at yahoo dot co dot in
    Status: Open
    Bug Type: DOM XML related
    Operating System: Mandrake linux
    -PHP Version: 4.4.5
    +PHP Version: 4.3.9
    New Comment:

    Any workaround for this?


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-22 11:25:09] vijijvs at yahoo dot co dot in

    Wants to fix with this version itself.

    Updating to latest version leads to problem in our environment and it
    is quite risk.

    ------------------------------------------------------------------------

    [2007-02-20 10:48:51] [email]tony2001@php.net[/email]

    Thank you for taking the time to report a problem with PHP.
    Unfortunately you are not using a current version of PHP --
    the problem might already be fixed. Please download a new
    PHP version from [url]http://www.php.net/downloads.php[/url]

    If you are able to reproduce the bug with one of the latest
    versions of PHP, please change the PHP version on this bug report
    to the version you tested and change the status back to "Open".
    Again, thank you for your continued support of PHP.



    ------------------------------------------------------------------------

    [2007-02-20 10:42:27] vijijvs at yahoo dot co dot in

    Description:
    ------------
    When "/home/viji/Endroit de protection de caractères spéciaux" is
    passed as argument to DomElement->set_attribute() function, the french
    letters è and é get converted into &#x8CA5; and &#x98E9;.

    Php version im using is 4.3.9 and Apache 1.33.


    Note:
    =====

    Tried by using utf8_encode() and utf8_decode() before setting value for
    the attribute.

    Reproduce code:
    ---------------
    DomElement->set_attribute(Name, "/home/viji/Endroit de protection de
    caractères spéciaux");

    Expected result:
    ----------------
    <Location><Path Name="/home/viji/Endroit de protection de caractères
    spéciaux" /></Location>

    Actual result:
    --------------
    <Location><Path Name="/home/viji/Endroit de protection de
    caract&#x8CA5;s sp&#x98E9;aux" /></Location>


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40554&edit=1[/url]
    vijijvs at yahoo dot co dot in Guest

  4. #4

    Default #40554 [Opn->Bgs]: DomElement->set_attribute() for french characters

    ID: 40554
    Updated by: [email]tony2001@php.net[/email]
    Reported By: vijijvs at yahoo dot co dot in
    -Status: Open
    +Status: Bogus
    Bug Type: DOM XML related
    Operating System: Mandrake linux
    PHP Version: 4.3.9
    New Comment:

    We can't fix something that was released years ago.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-22 11:30:50] vijijvs at yahoo dot co dot in

    Any workaround for this?

    ------------------------------------------------------------------------

    [2007-02-22 11:25:09] vijijvs at yahoo dot co dot in

    Wants to fix with this version itself.

    Updating to latest version leads to problem in our environment and it
    is quite risk.

    ------------------------------------------------------------------------

    [2007-02-20 10:48:51] [email]tony2001@php.net[/email]

    Thank you for taking the time to report a problem with PHP.
    Unfortunately you are not using a current version of PHP --
    the problem might already be fixed. Please download a new
    PHP version from [url]http://www.php.net/downloads.php[/url]

    If you are able to reproduce the bug with one of the latest
    versions of PHP, please change the PHP version on this bug report
    to the version you tested and change the status back to "Open".
    Again, thank you for your continued support of PHP.



    ------------------------------------------------------------------------

    [2007-02-20 10:42:27] vijijvs at yahoo dot co dot in

    Description:
    ------------
    When "/home/viji/Endroit de protection de caractères spéciaux" is
    passed as argument to DomElement->set_attribute() function, the french
    letters è and é get converted into &#x8CA5; and &#x98E9;.

    Php version im using is 4.3.9 and Apache 1.33.


    Note:
    =====

    Tried by using utf8_encode() and utf8_decode() before setting value for
    the attribute.

    Reproduce code:
    ---------------
    DomElement->set_attribute(Name, "/home/viji/Endroit de protection de
    caractères spéciaux");

    Expected result:
    ----------------
    <Location><Path Name="/home/viji/Endroit de protection de caractères
    spéciaux" /></Location>

    Actual result:
    --------------
    <Location><Path Name="/home/viji/Endroit de protection de
    caract&#x8CA5;s sp&#x98E9;aux" /></Location>


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40554&edit=1[/url]
    tony2001@php.net Guest

Similar Threads

  1. UTF-8 and French characters in Contribute
    By seven24 in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: May 2nd, 12:24 PM
  2. Replies: 0
    Last Post: February 20th, 10:48 AM
  3. Cfmail and French characters
    By KevinOtt in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: April 13th, 04:59 PM
  4. flashVars and (french) special characters
    By sko webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: January 23rd, 03:09 PM
  5. #21213 [Com]: invalid entities handling into set_attribute() and set_content()
    By markus dot pfefferle at web dot de in forum PHP Development
    Replies: 0
    Last Post: November 5th, 01:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139