Skip Menu |

This queue is for tickets about the Parse-Dia-SQL CPAN distribution.

Report information
The Basics
Id: 57182
Status: resolved
Priority: 0/
Queue: Parse-Dia-SQL

People
Owner: Nobody in particular
Requestors: gaudenz [...] soziologie.ch
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.15
Fixed in: 0.16



Subject: encoding for insert statements in UML components
Perl: v5.10.1 OS: Debian testing XML::DOM version 1.44 Database: postgres If there are non ASCII characters in values in UML components they are encoded in LATIN1 even though the dia XML file is UTF-8 and the system locale is also UTF-8. The values should either be in the same encoding as the dia file, in the same encoding as the current system locale or it should be configurable on the command line.
On Mon May 03 16:45:06 2010, https://openid.org/haruschi wrote: Show quoted text
> If there are non ASCII characters in values in UML components they are > encoded in > LATIN1 even though the dia XML file is UTF-8 and the system locale is > also UTF-8.
Thank you for your bug report. Does adding the following line (e.g. right after the line 'use strict') to lib/Parse/Dia/SQL/Output.pm solve your problems? use open qw/:std :utf8/; Best regards, Andreas --
Subject: Re: [rt.cpan.org #57182] encoding for insert statements in UML components
Date: Tue, 4 May 2010 19:37:27 +0200
To: Andreas Faafeng via RT <bug-Parse-Dia-SQL [...] rt.cpan.org>
From: Gaudenz Steinlin <gaudenz [...] soziologie.ch>
On Tue, May 04, 2010 at 04:21:15AM -0400, Andreas Faafeng via RT wrote: Show quoted text
> > Does adding the following line (e.g. right after the line 'use strict') > to lib/Parse/Dia/SQL/Output.pm solve your problems? > > use open qw/:std :utf8/;
Yes this fixes the problem. While I'm happy with UTF-8 I'm not sure if it's the right thing to do to force everything to UTF-8. Thanks for your prompt reply. Gaudenz -- Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. ~ Samuel Beckett ~