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 8351835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:46:03+00:00 2026-06-09T08:46:03+00:00

In my application, we are using Spreadsheet::Read to read a excel and perform some

  • 0

In my application, we are using Spreadsheet::Read to read a excel and perform some task on the rows and finally add it to a database.

The file we are importing is an Excel file ( .XLSX). This excel file is actually a glossary which serves support to different user languages.

The problem, I am facing with this process is we have special character cells in some of the rows/columns which are not getting decoded correctly.

For example, if i have a SPANISH Excel FIle:


IN THE EXCEL SHEET => Extract from the logs


Información de cuenta => Informaci\x{f3}n de cuenta

Página de consola de administración de curso => P\x{e1}gina de consola de administraci\x{f3}n de curso

Informaci\x{f3}n de cuenta is getting added in the Db and when fetched it is displaying extraneous characters in the UI.

I tried this solution but it is not working. this is basically Hacking of Spreadsheet::Read

use Text::Iconv;
package Spreadsheet::XLSX;

sub new {
    my $converter = Text::Iconv->new("ASCII","utf-8");
    return __PACKAGE__->SUPER::new(@_, $converter);
}

Please suggest me what is wrong or any better solution ?

  • 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-06-09T08:46:05+00:00Added an answer on June 9, 2026 at 8:46 am

    Spreadsheet::Read returns strings as octets encoded in Latin1. To make Perl characters, use the Encode module. Read the introduction to the topic of encoding in Perl.

    use Encode qw(decode);
    use Spreadsheet::Read qw(ReadData);
    my $ref = ReadData 'spanish.xls';
    my $characters = decode 'Latin-1', $ref->[1]{A1};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an application that extracts images from an Excel spreadsheet using COM
I'm using web based database for which I need to add spreadsheet capabilities to
Using Coldfusion's SpreadSheet() object I have created an excel file and now the user
I have a Delphi application which reads data from an excel spreadsheet using code
I am implementing an application using ember.js and couchdb. I choose ember-resource as database
I have a C# application which emails out Excel spreadsheet reports via an Exchange
I have an application in turbogears that dynamically generates an excel spreadsheet, meaning it
I am creating a master database using SQLite. This single file contains a dozen
Background In a targeted issue tracking application (in django) users are able add file
I'm using Jquery to draw lines between the cells in a web-based spreadsheet application.

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.