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

  • Home
  • SEARCH
  • 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
I'm new in using scripting language. I come across 2 scripting languages called Perl
We have an existing Perl application that supports mod_perl . However, our new host
I'm kinda new to data binding and obviously don't really understand it. I'm trying
Im still kinda new to c# and there's something I cant quite get to
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
I am new to Java and exceptions in general. In my prior C/Perl programming
Hi I am still kinda new to asp.net and what it can do. I
I'm kinda new to Scala trying it out while reading Beggining Scala by David

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.