LJ::text_convert

LJ::text_convert — convert old entries/comments to UTF-8 using user's default encoding.

Use

LJ::text_convert(dbs, text, u, error);

Arguments

  • dbs. optional. Deprecated; a master/slave set of database handles.

  • text. old possibly non-ASCII text to convert

  • u. user hashref of the journal's owner

  • error. ref to a scalar variable which is set to 1 on error (when user has no default encoding defined, but text needs to be translated).

Source:

cgi-bin/ljtextutil.pl

Returns:

converted text or undef on error