fnc1 symbol in barcode[[remove please, misposted]]

Asked by vrsb

[[removed]]

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
xrg (xrg) said :
#1

On Thursday 21 October 2010, you wrote:
> New question #130509 on OpenObject Server:
> https://answers.launchpad.net/openobject-server/+question/130509
>
> Hello.
> I make an RML report with barcode of "code128 " kind.
> Is there a way to insert a special FNC1 symbol (field delimeter) in the
> barcode? This is required this because there are fields of variable length
> in barcode.
>
> The Reportlab documentation says: "Code 128 is a very compact symbology
> that can encode the entire 128 character ASCII set, plus 4 special control
> codes, (FNC1-FNC4, expressed in the input string as \xf1 to \xf4)."
>
> So Python code like "bar=code128.Code128("\xf412\xf134567890",xdim=100*mm)"
> works well.
>...
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 0:
> ordinal not in range(128)

I think you have a good point there: making sure that we can feed the barcode
engine with those non-printable characters is an important feature.

Can you help with this problem?

Provide an answer of your own, or ask vrsb for more information if necessary.

To post a message you must log in.