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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:59:56+00:00 2026-05-31T22:59:56+00:00

I have a webservice that produce XML result. I have been working on this

  • 0

I have a webservice that produce XML result.

I have been working on this site till now, because locally (in my machine) it is working in another way as in the server…

The server have english OS, my machine have hungarian OS (win1250 or iso-8859-2).
So I must reconfigured the db access (set client encoding to utf) to preserve hungarian characters like “ő”, “ű”…

The input is ok now, only the output produce errors…

In the english server this code aborted on error:

$s = "\xf5t\xdb";

$doc = new DOMDocument('1.0', 'iso-8859-2');
$doc->formatOutput = true;
$m = $doc->createElement('package');
$doc->appendChild($m);
$n = $doc->createElement('Msg');
$m->appendChild($n);
$n->nodeValue = $s;
$xs = $doc->saveXML();
echo($xs);

the error was:

PHP Warning:  DOMDocument::saveXML() 
[<a href='domdocument.savexml'>domdocument.savexml</a>]: 
output conversion failed due to conv error, bytes 0xF5 0xDB 0x3C 0x2F

I don’t know how to produce “ő” and “ű” characters in the output.

I can show them:

$s = "\xf5t\xdb";
echo($s."<br>");

But xml generation failed, not matter I use SimpleXML, or Dom…

What can be the solution?

Thanks for every idea: dd

  • 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-31T22:59:57+00:00Added an answer on May 31, 2026 at 10:59 pm

    If your data uses utf8, can’t you produce utf8 xml instead of iso-8859-2?
    Else, you’ll have to use mb_convert_encoding ()

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

Sidebar

Related Questions

I have a WebService that when I use the instance of this webservice, occurs
I have a WebService that returns XML in a SOAP response: <?xml version=1.0 encoding=utf-8
I have a webservice that I want to query for updates immediately after a
I have a webservice that returns a list of Clinics near a certain lat/long.
I have a restfull webservice that requires loading trained model files and to create
I have a webservice method that reads a photo and returns its byte data.
I have a REST webservice that I need to consume in C#. I need
I have an application in which I have a webservice call that returns data
I have read a lot about jquery and i have a simple webservice that
I have an XML as input to a Java function that parses it and

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.