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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:44:27+00:00 2026-05-12T16:44:27+00:00

My site have a utf-8 encoding (Drupal). I use include function to integrate my

  • 0

My site have a utf-8 encoding (Drupal).

I use include function to integrate my page with 3rd party service.
But this gives a bad result – bad encoding for include part of page.

i try this, but this don’t give any result:

iconv("ASCII","utf-8",include("http://new.velo-travel.ru/themes/themex/spectrum_view.php?$QUERY_STRING"))

before this i use mb_detect_encoding to know encoding

this is included file:

$url = 'http://young.spectrum.ru/cgi-bin/programs_form.pl';
$params = $_GET;
if ($params){
  $url .= '?';
  foreach ($params as $key => $value) $url .= '&' . $keys . '=' . urlencode($value);
}

#$content = file_get_contents($url);
echo iconv("cp-1251","utf-8", $url);
  • 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-12T16:44:27+00:00Added an answer on May 12, 2026 at 4:44 pm

    The include function doesn’t return a string (unless you actually call return in the included file), it literally includes the content to your source code. So if the server returns PHP source code, it would be interpreted on your server (which basically means the owners of “new.velo-travel.ru” would have control over your site :)).

    Also, as Augenfeind pointed out, the page is in windows-1251. So, you probably want:

    echo iconv("windows-1251", "utf-8", file_get_contents("http://new.velo-travel.ru/themes/themex/spectrum_view.php?$QUERY_STRING"))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 219k
  • Answers 219k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Maybe you are calling the function from an uninitialized pointer,… May 12, 2026 at 11:45 pm
  • Editorial Team
    Editorial Team added an answer I don't understand your question really. Why by all means… May 12, 2026 at 11:45 pm
  • Editorial Team
    Editorial Team added an answer My answer is an elaboration on Archimed's. Don't hesitate to… May 12, 2026 at 11:45 pm

Related Questions

Hello everyone Masters Of Web Delevopment :) I have a piece of PHP script
I have a form with a textarea. Users enter a block of text which
I would like to make sure that everything I know about UTF-8 is correct.
I'm getting more into jQuery and so have set up a HTML/Javascript/CSS base site

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.