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 6792715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:00:20+00:00 2026-05-26T18:00:20+00:00

I do not have that much control of the remote server to install extensions,

  • 0

I do not have that much control of the remote server to install extensions, php is 5.3.8.
But I’ve noticed that there is possible to split utf-8 string with pcre.

So for example: preg_split('@@u','bücher',-1,PREG_SPLIT_NO_EMPTY);

gives: Array ( [0] => b, [1] => ├╝, [2] => c, [3] => h, [4] => e, [5] => r )

or for chinese word: 中国/中华 it gives: Array ( [0] => ńŞş, [1] => ňŤŻ, [2] => /, [3] => ńŞş, [4] => ňŹÄ )

(the results are from non-unicode display), but it is clear that it is possible to split an utf-8 string without international extensions and then (I think) it should be possible to get character codes and do calculations with them to create ascii url.

  • 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-26T18:00:21+00:00Added an answer on May 26, 2026 at 6:00 pm

    The only things you need to know is the bitmasks that signal double,triple,quad byte code points:

    Table from http://en.wikipedia.org/wiki/UTF-8

    Bits  Last Code Point  Octet 1  Octet 2  Octet 3  Octet 4
    
     7    U+007F           0xxxxxxx    -/-      -/-      -/-
    11    U+07FF           110xxxxx 10xxxxxx    -/-      -/-
    16    U+FFFF           1110xxxx 10xxxxxx 10xxxxxx    -/-
    21    U+10FFFF         11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
    

    I don’t speak php, but I’m quite sure existing code can be found that uses the shown bitmasks to scan a utf-8 char sequence without actually interpreting it

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

Sidebar

Related Questions

I have an ASP.NET server that I do not have direct access to. How
My question does not really have much to do with sqlalchemy but rather with
I am aware that MySQL and PostgreSQL[1] do not have that concept, so I
I need a select from table which does not have column that tells when
I have a datagridview that may or may not have rows selected when the
Now I have something that I have not seen it before: the database is
So Google Analytics does not have an API that we can use to get
Does gettext have a way to warn me about strings that have not been
I have heard that it's best not to actually have any html in your
I have a problem that I have not faced before: It seems that the

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.