Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 842
  • Last Modified:

How to convert UTF-8 3 byte to UTF-8 2 byte through PHP?

Hello,

I need to know if there is a way to convert UTF-8 3 byte text to UTF-8 2 byte text through PHP.

Thanks in advance
0
jmhabis2
Asked:
jmhabis2
1 Solution
 
darren-w-Commented:
0
 
Rok-KraljCommented:
How do you even intend to do that? You can't transform 3 byte utf character to 2 byte utf character...

Define 3 byte text. UTF-8 is not a fixed size encoding, but rather variable size, that means that some characters are 1 byte, some 2 bytes, some even more.
0
 
jmhabis2Author Commented:
The issue cannot be solved in this matter. Need to reconsider my approach
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now