Zamek writes: > > Hi All, > > Perhaps it is not a torque problem, but I have no idea... > So when I insert strings into postgresql it working good encoding. > And when I insert strings into bytea typed fields, its encoding is wrong. > Same string inserted different in varchar and bytea fields.
I don't think any encoding is done to bytea data; it just stores raw bytes. From the docs: Second, operations on binary strings process the actual bytes, whereas the encoding and processing of character strings depends on locale settings. If you want encoding, use varchar or text fields. see: http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=datatype-binary.html > > I use jakarta turbine2.2, torque 3.0, and postgres 7.3 in Debian Linux 3.0. > postgres coding is LATIN2, turbine encoding is iso-8859-2 > > Jvm is: > java version "1.3.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) > Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010925 (JIT enabled: > jitc)) > > Are there any ideas? > > -- > thx, > ---------------------------------------------------- > Zoltan Zidarics programmer > PTE University Pecs, Hungary > icq: 43288694 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Matt Hughes + [EMAIL PROTECTED] + http://www.enel.ucalgary.ca/~hughes + "Were there monkeys? Some terrifying space monkeys maybe got loose?" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
