Ver Mensaje Individual
  #2  
Antiguo 30-11-2023
tsk tsk is offline
Miembro
 
Registrado: dic 2017
Posts: 52
Reputación: 7
tsk Va por buen camino
Porque no conviertes a bytes el string,

Por ejemplo

Código PHP:
using System;

public class 
Str2Byte
{
    public static 
void Main()
    {
        
string text "€„€ˆ„";

        foreach( 
char c in text)
        {
            
Console.WriteLine(c);
            
byte b = (byte)c;
            
Console.WriteLine(b);
        }

    }

Código:
./str2byte.exe 
€
172
„
30
€
172
ˆ
198
„
30
Responder Con Cita