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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:22:41+00:00 2026-05-22T14:22:41+00:00

My friend has been playing around with some language stuff on our site and

  • 0

My friend has been playing around with some language stuff on our site and our file names are being out put with these characters now. Usually I’d wait for him to wake up but this is a pretty big issue as we are getting e-mails through about the weird characters in the file names.

You don’t see the characters when echoed in HTML, but we have the names being output to a header, which does show the characters, like so:

header('Content-Disposition: attachment; filename="'.$title.'.'.strtolower($type).'";');

How can we avoid these characters from displaying? They are also being input to our database, file names such as ‪asdfmovie‬‏ – I have googled the codes but I can’t find any results for them.

Does anyone know what they are? and how to avoid them?

Thank you

  • 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-22T14:22:42+00:00Added an answer on May 22, 2026 at 2:22 pm

    These are HTML entities which can be decoded using html_entity_decode, like echo html_entity_decode($str, ENT_COMPAT, 'UTF-8').

    It’s wrong to store such values in the database though, as you are seeing. The values should be stored in their original form and only HTML entity encoded when necessary for outputting to HTML. Figure out where they’re being HTML encoded and fix that. If you already have a database full of this nonsense… um, have fun reversing it. :o)

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

Sidebar

Related Questions

I've been working on some C++ code that a friend has written and I
A friend is asking about their ASP.NET site that has been getting hacked. It's
One of my friend has been asked with a question Retrieving the max top
A friend has created a few tables for me and used nvarchar(max) on around
A friend of mine has inherited an old Joomla 1.0.x site, that amongst other
I have been playing around with the Gowalla API, and was wondering if anyone
I have a friend that has been in the advertising industry for 20 years
I have a friend who's working at a newspaper and has been given a
I often get a notification to my Vim that my file has been changed
I was wondering why Java has been designed without the friend directive that is

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.