added :external-format :utf8 on the octets-to-string call
[clsql.git] / db-postgresql-socket / postgresql-socket-api.lisp
index 64c424043ddd5720f0b0152a478401980ca0cbfb..2989d578cd3b94dbfd7a071206764b4cfd1e186a 100644 (file)
@@ -226,7 +226,7 @@ socket interface"
     (declare (type (simple-array (unsigned-byte 8) (*)) bytes))
     (read-sequence bytes stream)
     (if allow-wide
-        (sb-ext:octets-to-string bytes)
+        (sb-ext:octets-to-string bytes :external-format :utf8)
         (map 'string #'code-char bytes))))
 
 ;;; Support for encrypted password transmission