Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save abstract more properly #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pawa-
Copy link

@pawa- pawa- commented Jun 26, 2014

Mojibake occurs if abstract has non-latin-1 characters.

@@ -407,7 +408,7 @@ sub cpan_meta {
"url" => "http://search.cpan.org/perldoc?CPAN::Meta::Spec"
},
license => [ $self->license->meta2_name ],
abstract => $self->abstract,
abstract => decode_utf8($self->abstract),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should decode in input from the file.

@tokuhirom
Copy link
Owner

You need to write the test case.

@pawa- pawa- mentioned this pull request Jun 26, 2014
@tokuhirom
Copy link
Owner

Normally, Pod is written in latin-1. If the pod says =encoding utf-8, it means the pod is written in utf-8.
You need to look the =encoding line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants