Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PHP - save unicoded text file

Posted on 2011-02-19
8
Medium Priority
?
243 Views
Last Modified: 2012-05-11
Hi,

I've written a PHP script which creates and save a txt file with content inside - that works well.
Out of the 4 options that Notepad allows (ANSI, Unicode, Unicode big endian and UTF-8) I've only managed to find how to create the file as ANSI and UTF-8 but I need the Unicode one or any idea how to convert it afterward.

Will appreciate a solution for that.

Thanks
0
Comment
Question by:oferlll
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 4

Expert Comment

by:florjan
ID: 34932808
Utf-8 is an unicode charset
0
 
LVL 4

Accepted Solution

by:
florjan earned 1000 total points
ID: 34932832
But these links should help
hsivonen.iki.fi/php-utf8/

http://www.phpwact.org/php/i18n/utf-8
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1000 total points
ID: 34933164
Can you tell us WHY you need Unicode?  What characters are not available in the other character sets?

Also, you might benefit from reading this.  It is rather long and detailed, but it offers a good foundation.
http://www.joelonsoftware.com/articles/Unicode.html
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 111

Expert Comment

by:Ray Paseur
ID: 34956760
I'm going to post an objection to closing this question.   Please work with us here.  Did you read Joel Spolsky's article?  Can you tell us WHY you need Unicode?  What characters are not available in the other character sets?

Thanks, ~Ray
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 34956766
Please give us an answer to the questions instead of declaring them "irrelevant."  Thanks.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 34960442
Absent any response from the Asker, I think http:#34932832 and http:#34933164 cover the subject.  But I would hope to see the specific issues so we can see what characters are causing the problem.  

Some additional refs:
http://php.net/manual/en/intro.strings.php#100623
http://php.net/manual/en/language.types.string.php
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question