I have any information stored in svg format in the database and if it text I'll get it as unicode. Now I need that any svg file will be correctly displayed in browser.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="header"
viewBox="654.0519483 -714.4517 356.4000564 252">
<defs></defs><g id="0" visibility="visible">
<text id="gText_11081308229940" name="-1" x="790.251953" y="-631.9517"
font="Arial" rotate="0" horizAnchor="middle" vertAnchor="middle" scale="4,4" width="1" stroke="0x000000">
\u0048\u0045\u004C\u004C\u004F\u0020\u0057\u004F\u0052\u004C\u0044\u0021\u0021\u0021\u0021 </text>
</g></svg>
When I try this code I get displayed unicode instead of letters.
If you really want to insert Unicode values rather than just choosing the right encoding and putting the characters directly in there, use entities like you would in any other XML document:
<text id="gText_11081308229940" name="-1" x="790.251953" y="-631.9517" font="Arial" rotate="0" horizAnchor="middle" vertAnchor="middle" scale="4,4" width="1" stroke="0x000000">HELLO WORLD!!!!</text>
Example.
Just for the case that any future visitor would care. This \u0048 or this H are not “a Unicode(s)”. Unicode is standard explaining how to encode binary values to characters to be displayed. The notations above are more exact the Unicode escape sequences of characters. They are useful when you have no option to enter Unicode characters directly. (Their use within the example in the original question is pointless.) There are many of them and you should not mix them. You can look for example at this page: http://billposer.org/Software/ListOfRepresentations.html