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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:00:16+00:00 2026-06-09T07:00:16+00:00

In my case, I recently picked up the irrKlang library which allows me to

  • 0

In my case, I recently picked up the irrKlang library which allows me to work with audio files without doing too much work. Then I ran into the issue where unicode characters in filepaths were not supported by the library. It either reads it incorrectly (I would’ve thought even if it was read wrong, it could still find the file), or simply ignores it, leaving me with invalid file paths.

Searched their support forums for a solution to this, but all I got out of it was “unicode? uhhh why not just use ascii?” kind of attitude towards unicode, which I suppose is not uncommon.

What are some techniques that I could use to reliably pass unicode strings to libraries that don’t have unicode support?

  • 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-09T07:00:19+00:00Added an answer on June 9, 2026 at 7:00 am

    Simply put you don’t, you can pass through them using a byte array, and then interpret it back as a unicode array on the other end, but if it doesn’t do unicode, it doesn’t do unicode.

    There is no point in passing a unicode string to a library that is incapable of interpreting it.

    If you need to do something specific(like using a load command on a filesystem with unicode paths e.g HFS+), then don’t. Rather use the system provided file APIs and push the data into the uncooperative libraries constructor.

    If you’re seriously having problems with this unicode file path business, cause you don’t work well with passing addresses and bitstreams around, then a simple solution is to make your own function:

    obj_ptr* loadObjFromUnicodePath(path)
    {
    //create tmp ASCII named symlink to file at arg(path).
    //call load API of irrKlang on symlink.
    //delete tmp symlink, return object.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran across this case of UnboundLocalError recently, which seems strange: import pprint def
I recently encountered a case where I need to compare two files (golden and
Possible Duplicate: Business Case for Resharper I've just recently graduated and I'm working for
I've recently installed SQL Server 2008 and I selected collation as case sensitive. I
I recently created a couple inline table-valued UDF's and then referenced them in a
I recently asked this question on the subject, which was closed as a duplicate
I recently refactored old code files from ABCFile.cpp/.h to AbcFile.cpp/.h to match my company's
I've recently picked up Michael Abrash's The Zen of Assembly Language (from 1990) and
This is an odd case that was just recently brought to my attention. I
I don't have a use case for this but I was recently asked this

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.