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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:37:08+00:00 2026-05-23T12:37:08+00:00

my orginal text is 1 1/2w x 1/2h , but in database it look

  • 0

my orginal text is 1 1/2"w x 1/2"h , but in database it look likes 1 1/2â€w x 1/2â€h.

I am using stripslashes().

But still i can’t convert the encrypted string.

Thank You all

i just added to html.

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  • 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-23T12:37:09+00:00Added an answer on May 23, 2026 at 12:37 pm

    I don’t know where you read you have to use stripslashes() to escape database input or output but that information is wrong. You always have to use the specific escaping mechanism provided by your database library. For instance, if you are using PDO you can use bindValue() to inject values into your SQL code.

    As about 1 1/2â€w x 1/2â€h, that looks like a multi-byte UTF-8 string misinterpreted as some single-byte encoding (possibly ISO-8859-1). It looks like you are either trying to fit UTF-8 data into a Latin1 database or providing a wrong charset when connecting to the database. In the first case, the best solution is changing your DB charset to match your application’s charset (if your DBMS allows to do so). In the second case, you’ll probably find the solution in the PHP manual page for whatever your DB library is: look for some method to specify the charset or encoding of the connection.

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

Sidebar

Related Questions

So I'm using Markdown to format text input from user: http://michelf.com/projects/php-markdown/ But I'm doing
I want to split a large text database (~10 million lines). I can use
In my program I am getting a string from Database result set and convert
original string is a,d,k I want to remove all , and make it to
I'm looking into implementing full text search on our Firebird database. Our requirements are:
I'm vaguely familiar with the nature of unicode, but I'm not sure how all
I need to dynamically populate a form from fields in a database using EXT
I'm using 3 AutocompleteTextViews to suggest entries from a database. I subclassed AutocompleteTextView to
I am trying to store some text (e.g. č ) in a Postgres database,
We have a text processing application developed in C# using .NET FW 4.0 where

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.