diff --git a/Text/HPaco/Readers/Common.hs b/Text/HPaco/Readers/Common.hs
--- a/Text/HPaco/Readers/Common.hs
+++ b/Text/HPaco/Readers/Common.hs
@@ -24,6 +24,7 @@
 import Text.Parsec.String hiding (Parser)
 import Control.Monad.IO.Class
 import System.IO.Strict
+import Data.Char
 
 type Parser s a = ParsecT String s IO a
 
@@ -75,8 +76,8 @@
         'b' -> return '\b'
         't' -> return '\t'
         'u' -> do
-            ds <- count 4 digit
-            return . read $ "'\\u" ++ ds ++ "'"
+            ds <- count 4 (digit <|> oneOf "abcdef")
+            return . chr . read $ "0x" ++ ds
         otherwise -> return c2
 
 discard :: Parser s a -> Parser s ()
diff --git a/Text/HPaco/Readers/Paco/Expressions.hs b/Text/HPaco/Readers/Paco/Expressions.hs
--- a/Text/HPaco/Readers/Paco/Expressions.hs
+++ b/Text/HPaco/Readers/Paco/Expressions.hs
@@ -108,7 +108,7 @@
     opStr <- foldl1 (<|>) $ map (try . string . fst) opMap
     let Just op = lookup opStr opMap
     return op
-    
+
 postfix = try memberAccessPostfix
         <|> try indexPostfix
         <|> try functionCallPostfix
diff --git a/hpaco-lib.cabal b/hpaco-lib.cabal
--- a/hpaco-lib.cabal
+++ b/hpaco-lib.cabal
@@ -1,5 +1,5 @@
 name:                hpaco-lib
-version:             0.28.0.4
+version:             0.28.0.5
 synopsis:            Modular template compiler library
 description:         Template compiler library, compiles template code into
                      PHP or Javascript, or interprets it directly.
