Results 1 to 11 of 11

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562

    Question php, preg, unicode

    , , preg- .
    :
    Code:
    preg_match('/^[-]*$/ui', $val);
    , , i .
    , :
    Code:
    preg_match('/^[--]*$/u', $val);
    . .
    ?

    , internal_encoding php.
    , .
    - , , .

  2. #2
    Registered User
    Join Date: Dec:2003
    Posts: 2,817
    php- ? preg_match utf8
    Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb

  3. #3
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    5.2.10
    .

    :
    preg- php- pcre-.
    -, /u.
    pcre, php , .
    .
    php , ...


    LC_CTYPE
    :
    iconv.internal_encoding -> ISO-8859-1 -> ISO-8859-1
    mbstring.internal_encoding -> no value -> no value
    Last edited by Flower; 7th February 2010 at 00:15.

  4. #4
    Registered User
    Join Date: Dec:2003
    Posts: 2,817
    php- PCRE Library .
    Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb

  5. #5
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    PCRE Library Version: 6.6 06-Feb-2006

    ?

  6. #6
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    ?
    - OS-, , pcre . . , , . , preg_ , , ..

    .. pcre, 5.2.12, 7.9.2009. .

  7. #7
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    , .
    , .
    , .
    .
    "" - . .
    , .
    .
    " ".
    , , .

    PCRE - phpinfo().
    5.2.12 PCRE 7.9 2009-04-11.

    , , mb- .
    Last edited by Flower; 7th February 2010 at 00:57.

  8. #8
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    . " ", "", 6.6 7.9 ? ( ).
    "" , . , Windows, utf-8 . accept-charset, , Content-type , -1251, . accept-charset="UTF-8" .

  9. #9
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    .
    () 6.6 .
    , Windows, , . ( ) . .
    - , .
    .
    , ...

    .
    :
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    ( ?)

    :
    Transfer-Encoding: chunked
    Content-Type: text/html


    ------
    :
    Code:
    if ( preg_match('/^[-]*$/ui', '') ) {
      error_log('qQ: cyr');
    } else {
      error_log('qQ: HE');
    }
    if ( preg_match('/^[-]*$/ui', '') ) {
      error_log('qq: cyr');
    } else {
      error_log('qq: HE');
    }

    qQ: HE
    qq: cyr
    Last edited by Flower; 7th February 2010 at 10:08.

  10. #10
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    changelog PCRE, 6.6 caseless . . , 5.2.10 pcre. 5.2.6 5.2.12. .

  11. #11
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    .
    .
    php, (CentOs ).
    .
    . ,
    , . .

    :
    http://bg2.php.net/manual/en/pcre.installation.php
    pcre php 5.2.10 7.8
    ( ) 6.6.
    .
    Last edited by Flower; 7th February 2010 at 15:23.

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |