Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6138201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:49:17+00:00 2026-05-23T17:49:17+00:00

I saw in the PCRE Documentation that PCRE support UTF-8 and Unicode general category

  • 0

I saw in the PCRE Documentation that PCRE support UTF-8 and Unicode general
category properties, but i dont see where it say the Native encoding support.

If you say that support ISO-8859-1:
where can i found info about that?

In A Nutshell:

Ive compared & im guessing that the encoding supported by PHP is windows-1252 and not the ISO-8859-1 encoding.

if(preg_match('/€/',"\x80"))
    echo "Match";

ISO-8859-1 doesn’t have the ‘€’ in that position. Windows-1252 does.
Or dependes of the system?

So wich is the native encoding PCRE Support?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:49:18+00:00Added an answer on May 23, 2026 at 5:49 pm

    Exactly this Example is used on regular-expressions.info to describe the difficulties from mixing 8bit and unicode

    Mixing Unicode and 8-bit Character Codes

    In short, the Euro symbol is on 80h on all windows code pages. How your regex engine treats this may vary. It works when your regex engine is a 8bit and the text file is using a windows code page.
    If your regex engine is a pure unicode one, it will read \x80 as \u0080 which is a control code.

    So what do you mean with native encoding PCRE Support? This is system dependend and you should not rely on some code pages.

    The advantage of unicode is that you can get rid of all the different code pages and all of the problems derived from that.

    So to use unicode for that try matching for \x{20AC} this is the unicode code point for the Euro symbol.

    Here is an overview on regular-expressions.info about the unicode syntax

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Saw that in some example codes, but ive never used it, unless im dynamically
I saw most of the related questions, but I couldn't find any that fixed
I saw in Expression Engine I can use {embed:title} and {site_name} variables, but now
I saw many questions asking 'how' to unit test in a specific language, but
I saw this same question for VIM and it has been something that I
Tried searching in PCRE Documentation . Couldn't find anything. What does & signify in
I saw other posts but still can't get my background image to scale correctly.
I saw an article here: http://code.lancepollard.com/automatically-publish-posts-to-stumbleupon-with-ruby I don't know Ruby, but the following lines
I saw that programmatically turning bluetooth on and off was a private api thing
I saw on couple of websites that they manage to log you out automatically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.