Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 854
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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