[postgis-users] Invalid Byte Sequence Error when using st_bandpath

Tumasgiu Rossini rossini.t at gmail.com
Wed May 11 05:49:44 PDT 2016


Hello list,

I came across an error using st_bandpath,
When using PostgreSQL binary output format, executing the function on
rasters registered with UNC paths fails with error message :

"22021: invalid byte sequence for encoding « WIN1252 » : 0x00"

When using Text mode, the functions works correctly.

My guess is that the first character of a UNC path which is a
backslash is considered as an escape sequence.
But it seems you can't escape the first two backslashes when
using raster2pgsql (tried \\\\, /\/\ and doublequoted path and
every combination of these three).

My configuration :
Windows 7
Postgres 9.3.5
Postgis 2.1.3
Database using WIN1252 Encoding and French_France.1252 collate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20160511/03f57d89/attachment.html>


More information about the postgis-users mailing list