Those who know tell me after bin2hex gaps remain in hex as "20" how to make spaces as "00"?
- onepre right in bin replace spaces on \ x00 with ordinary replace - Mike
- the task is a little different .. you need to insert zero bytes into the last character of the string music.music / music.mp3 join ('', str_split (" music.music / music.mp3" ) but after bin2hex join ('') \ x20 does not become \ x00 :) - Jeler
- why should it become one, if the space has the code 0x20, why not join explicitly write \ x00 - Mike
- m, so it turns out h \ x00t \ x00t \ x00p \ x00: \ x00 / \ x00 / \ x00m \ x00u \ x00s \ x00i \ x00c \ x00. \ x00m \ x00u \ x00s \ x00i \ x00c \ x00 / \ x00m \ x00u \ x00s \ x00i \ x00c \ x00. \ x00m \ x00p \ x003 at the output .. - Jeler
- Why is this ? you split the string, then collect with zeros, and after that you use bin2hex - Mike
|