Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5934505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:07:25+00:00 2026-05-22T15:07:25+00:00

Kinda new to Perl. I am using Perl web API to get the data.

  • 0

Kinda new to Perl. I am using Perl web API to get the data. The error is “application/xml; charset=UTF-8”. I used ‘use utf8’ but doesn’t seem to work. The line it gets stuck looks something like this

my @candidates = $c->bookmarks_for(start => 1, tag =>'pubmed');

Can you please help me.

Thank you,
Sammed

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:07:25+00:00Added an answer on May 22, 2026 at 3:07 pm

    The

    use utf8;
    

    is only (and only) for one thing. When you will use in your source code utf8 characters. For example:

    my $utf8str = "αΩ";
    

    For any other thins, for example:

    my $data = MyModule::get_some_data();
    

    you should use

    my $utf8data = Encode::decode_utf8($data);
    

    In the case, when your get_some_data returning octets (bytes).

    For example, when reading text files, you can tell perl utf8 conversion at IO level with,

    open($fd, "<", $filename);
    $fd->binmode(:utf8); #for marking data as utf8, or
    $fd->binmode(:encoding(utf8)); #for marking *and* checking data for utf8 validity too.
    

    Or you can use the open pragma for telling perl using utf8 as default at IO layer

    use open(:std :utf8);
    

    Here is no short answer. You really should read:

    • http://perldoc.perl.org/utf8.html
    • http://perldoc.perl.org/Encode.html
    • http://perldoc.perl.org/perlunicode.html
    • http://perldoc.perl.org/perlunifaq.html
    • http://perldoc.perl.org/perluniintro.html
    • http://perldoc.perl.org/perlunitut.html

    Perl is extremely strong in utf8 processing, but you must know, hot to use it properly – unfortunately, here is no shorter way as RTFM…

    And note: here are differences in utf8 processing in perl <5.6, 5.6, 5.8, 5.12, 5.14…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm kinda new to using Rails, and an app I am working on is
HI Guys, Im kinda new to php and xml so pls bear with me.
So, I am kinda new to ASP.net development still, and I already don't like
First of all, I'm kinda new to the barcode formats and what I do
Still kinda new to LINQ. Seems like there should be a more elegant way
I'm kinda new in flash and as3 so this may not be as difficult
I'm kind of new to ASP.NET MVC and to the MVC pattern in general
I am confronted with a new kind of problem which I haven't encountered yet
I am creating a website in CakePHP and I am kind of new on
I'm looking mainly at things like new SQL syntax, new kinds of locking, new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.