Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Print unicode strings to pdf

by sundialsvc4 (Abbot)
on Mar 26, 2018 at 21:10 UTC ( #1211789=note: print w/replies, xml ) Need Help??


in reply to Print unicode strings to pdf

In passing – “there is definitely something (good) to be said for storing Unicode data in a database in ‘escaped’ form.”   In the earlier days, when Unicode support was not a thing that could yet be taken for granted, this was necessary – Unicode would kill the SQL parser.   Today, if your database already contains substantial amounts of data which now continues to use this escaping-strategy, the case might well be argued that you ought not to change it now.   (For instance, are there any other applications, perhaps unknown to you now, which might also be referencing this same database, and which your changes might now “break?”)

Given my career history, which mostly consists of staring at legacy code (and the databases which inevitably go along with them ...), I get very nervous when I look upon the contents of a database column (in a very old database) and find two different ways of expressing the same thing.   If you know that the data uses only one way of expressing whatever it contains, then you know that you have only one alternative to consider.   (And, that is a relief, to people in my situation.)

Of course, you are the engineer.   I offer only a point-of-view.   The final choice is yours (and, your team’s).  “HTH!”

Replies are listed 'Best First'.
Re^2: Print unicode strings to pdf
by Your Mother (Bishop) on Mar 26, 2018 at 21:30 UTC
    …there is definitely something (good) to be said for storing Unicode data in a database in ‘escaped’ form.

    There is not. At all. The only thing that can possibly be achieved here is adding two extra steps to every single operation on the data; or perhaps being able to edit it manually from a braindead, EOL'd editor or terminal I suppose, offering the slimmest benefit of the doubt. It's embarrassing to hear such an assertion. Anything you say, the reader should presume the opposite to be the case.

    Given my career history…

    Your career history is, as far as this place is concerned, a pure work of fiction. Though, please cite some code or a repository we can examine in your defense should such exist. You have yet in, counting anonymous posts, your 5K+ additions to the monastery to demonstrate any skill other than water cooler BS, a thesaurus's familiarity with technical jargon, and snake oil advocacy.

    Update: typo fixed.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1211789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-10-16 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?