Functions don't correctly read formatting with §
When you use formatting codes(ex §4 for red text) with commands such as say in a function, it will instead cause the text to disappear completely. The attached picture shows an example of this, where the text should output "You have returned.", and does so when using the command in chat instead of a function.
Created Issue:
Functions don't correctly read formatting with §
When you use formatting codes(ex §4 for red text) with commands such as say in a function, it will instead cause the text to disappear completely. The attached picture shows an example of this, where the text should output "You have returned.", and does so when using the command in chat instead of a function.
The function wouldn't matter, it's still the same formatting, and all functions are custom made and there are no like built-in ones.



Please include the function used
The function is pretty long, but here are some iterations of one of the text output commands used in the function outputting in the screenshot. The top one is the one I tested out of the command, A screenshot of the chat result is attached
execute @p[scores={riddleStage=0},x=864,y=71,z=157,dx=5,dy=3,dz=5] ~~~ execute @e[c=1,type=enderquest:sphinx] ~~~ say §4You have returned. execute @p[scores={riddleStage=0},x=864,y=71,z=157,dx=5,dy=3,dz=5] ~~~ execute @e[c=1,type=enderquest:sphinx] ~~~ /tellraw @a {"rawtext":[{"text":"§4Sphinx: You have returned."}]} execute @p[scores={riddleStage=0},x=864,y=71,z=157,dx=5,dy=3,dz=5] ~~~ execute @e[c=1,type=enderquest:sphinx] ~~~ /tellraw @a {"rawtext":[{"text":"Sphinx: You have returned.","color":"red"}]}Works fine for me. Of course the color option is ignored because bedrock's raw text format is extremely primitive
It turns out to be an issue with visual studios, which is what I was using to edit the functions. It works fine for me now