Forum Moderators: open
For whatever reason, this has stopped working in a newly created database. encode('somevalue','somepass') is truncating 'somevalue' to one or two characters. It works if I convert the field to binary or blob, but then the decode doesn't work in plain text.
Oddly enough I have other databases on the same server that are working fine. Any ideas?
For whatever reason the software that creates database was creating it with utf8 encoding as the default. Normally I just create my own as root, but used the software provided with my server.
Usually latin1 is the default. When I converted it back to latin 1, the encode and decode functions work properly.