Hi - just back from a trip and catching up.... so hmmmm yes - the behaviour is not quite ideal is it...
What is actually wrong is that the description of the option says "Convert Base64 to String" and then it proceeds to converts it toString("binary") rather than just toString() - which defaults to utf8...
Of course the whole point of base64 encoding is to be able to get transmit a binary payload so is really meant for true binary and if you use the default Convert Buffer <-> Base64 option - then you do get a binary buffer back that you can then toString yourself correctly...
So -I think I should just correct the behaviour of that option to just toString('utf8') it to a string as the label suggests and implies - As this would potentially be a breaking change for some people I would have to bump the node to v1.0
Thoughts please
[{"id":"8285d46540f7a8ce","type":"inject","z":"4adb98c6.b11238","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"A £ B","payloadType":"str","x":110,"y":640,"wires":[["1daf2f2b67d5610d"]]},{"id":"1daf2f2b67d5610d","type":"base64","z":"4adb98c6.b11238","name":"","action":"","property":"payload","x":260,"y":640,"wires":[["f62b1b976c7ac977","cda376d17ff5dfd6"]]},{"id":"f62b1b976c7ac977","type":"debug","z":"4adb98c6.b11238","name":"debug 479","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":270,"y":690,"wires":[]},{"id":"cda376d17ff5dfd6","type":"base64","z":"4adb98c6.b11238","name":"","action":"","property":"payload","x":500,"y":640,"wires":[["fb6f76747517a14a","bede4c28c2bf6249"]]},{"id":"fb6f76747517a14a","type":"debug","z":"4adb98c6.b11238","name":"debug 480","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":510,"y":690,"wires":[]},{"id":"c7a6bf1eeb447772","type":"inject","z":"4adb98c6.b11238","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"A £ B","payloadType":"str","x":110,"y":510,"wires":[["8cae002f0395ed64"]]},{"id":"8cae002f0395ed64","type":"base64","z":"4adb98c6.b11238","name":"","action":"str","property":"payload","x":260,"y":510,"wires":[["b9fb9006e6440745","fb9bc53d81ac7bd8"]]},{"id":"b9fb9006e6440745","type":"debug","z":"4adb98c6.b11238","name":"debug 481","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":270,"y":560,"wires":[]},{"id":"fb9bc53d81ac7bd8","type":"base64","z":"4adb98c6.b11238","name":"","action":"b64","property":"payload","x":500,"y":510,"wires":[["573f50d928f5b6c4"]]},{"id":"573f50d928f5b6c4","type":"debug","z":"4adb98c6.b11238","name":"debug 482","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":510,"y":560,"wires":[]},{"id":"bede4c28c2bf6249","type":"function","z":"4adb98c6.b11238","name":"function 2","func":"msg.payload = msg.payload.toString()\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":640,"wires":[["3ecfea4c43cfb1ec"]]},{"id":"3ecfea4c43cfb1ec","type":"debug","z":"4adb98c6.b11238","name":"debug 483","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":730,"y":700,"wires":[]}]