X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FUTF8Columns.pm;h=63471e92d6a42c6216e86c52022ecf711f63b3e8;hb=9ab1e5f01d9c869a08f87301e18a518d5f11edc5;hp=a25ac39b0ab4b40fbd5abe82b7a40d044aa227f7;hpb=2ba92e450d43b9a1a247c807c7bc18edcfacf77d;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/UTF8Columns.pm b/lib/DBIx/Class/UTF8Columns.pm index a25ac39..63471e9 100644 --- a/lib/DBIx/Class/UTF8Columns.pm +++ b/lib/DBIx/Class/UTF8Columns.pm @@ -9,6 +9,9 @@ __PACKAGE__->mk_classdata( '_utf8_columns' ); DBIx::Class::UTF8Columns - Force UTF8 (Unicode) flag on columns + Please ensure you understand the purpose of this module before use. + Read the warnings below to prevent data corruption through misuse. + =head1 SYNOPSIS package Artist; @@ -23,9 +26,24 @@ DBIx::Class::UTF8Columns - Force UTF8 (Unicode) flag on columns =head1 DESCRIPTION -This module allows you to get columns data that have utf8 (Unicode) flag. +This module allows you to get and store utf8 (unicode) column data +in a database that does not natively support unicode. It ensures +that column data is correctly serialised as a byte stream when +stored and de-serialised to unicode strings on retrieval. + +=head2 Warning - Native Database Unicode Support + +If your database natively supports Unicode (as does SQLite with the +C connect flag, MySQL with C +connect flag or Postgres with the C connect flag), +then this component should B be used, and will corrupt unicode +data in a subtle and unexpected manner. + +It is far better to do Unicode support within the database if +possible rather convert data into and out of the database on every +round trip. -=head2 Warning +=head2 Warning - Component Overloading Note that this module overloads L in a way that may prevent other components overloading the same method from working