Hello all!
I'm in need of an algorithm to change windows-874 (Thai) encoding to
UTF-8, without using PHPs iconv or similar functions. I've done the
requisite googling and searching through the notes on php.net but nothing
(that I could see) has turned up.
Right now I'll be looking for pages explaining the inner workings of
windows-874 in the hopes that I might be able to code the algorithm
myself, but I thought I'd ask here as a last desperate hope :)
Any programming language is fine. I'll just translate it to PHP.
Yours in hope,
Grey
[x-posted to comp.lang.php 'cause I hear you guys are great, even though I
don't subscribe :) Please reply in a.w.w, thanks.] 10 4561
GreyWyvern <SP*********@greywyvern.com_am> wrote: I'm in need of an algorithm to change windows-874 (Thai) encoding to UTF-8, without using PHPs iconv or similar functions.
Sounds silly... Why not use these excellent tools in PHP.
[thais -> utf8] Any programming language is fine. I'll just translate it to PHP.
Take a look at the iconv source, it's open and it's free. If it supports
your source encoding, an alogorithm (or more likely a table) can be
gotten there.
--
Daniel Tryba
On Tue, 27 Apr 2004 13:14:02 +0000 (UTC), Daniel Tryba
<ne********************@canopus.nl> wrote: GreyWyvern <SP*********@greywyvern.com_am> wrote: I'm in need of an algorithm to change windows-874 (Thai) encoding to UTF-8, without using PHPs iconv or similar functions.
Sounds silly... Why not use these excellent tools in PHP.
[thais -> utf8] Any programming language is fine. I'll just translate it to PHP.
Take a look at the iconv source, it's open and it's free. If it supports your source encoding, an alogorithm (or more likely a table) can be gotten there.
I would if I could, and I've actually asked my host to install these
libraries. But for the sake of backward compatibility, and since iconv is
a relatively new PHP function in the scheme of things, and since I need
this algorithm for a script which will be distributed to multiple servers
with varying versions of PHP, I need a catch all translation which will
work always. Or at least back until 4.0.x
Thanks for you response, tho.
Grey
GreyWyvern <SP*********@greywyvern.com_am> wrote: [thais -> utf8] Any programming language is fine. I'll just translate it to PHP.
Take a look at the iconv source, it's open and it's free. If it supports your source encoding, an alogorithm (or more likely a table) can be gotten there.
I would if I could, and I've actually asked my host to install these libraries. But for the sake of backward compatibility, and since iconv is a relatively new PHP function in the scheme of things, and since I need this algorithm for a script which will be distributed to multiple servers with varying versions of PHP, I need a catch all translation which will work always. Or at least back until 4.0.x
So what is keeping you from looking at the iconv source? You don't need
any php support for that :)
--
Daniel Tryba
GreyWyvern wrote: Hello all!
hello again.
I'm in need of an algorithm to change windows-874 (Thai) encoding to UTF-8, without using PHPs iconv or similar functions. I've done the requisite googling and searching through the notes on php.net but nothing (that I could see) has turned up.
Right now I'll be looking for pages explaining the inner workings of windows-874 in the hopes that I might be able to code the algorithm myself, but I thought I'd ask here as a last desperate hope :)
Any programming language is fine. I'll just translate it to PHP.
OK, if you aren't going to hit the PHP iconv C source to find it, how
about some Perl? http://search.cpan.org/~elizabeth/Ne...NVERT_TO_UTF-8
....of particular interest to you:
"windows874 convert from windows-874 to UTF-8"
"illegal_windows874 remove characters illegal for windows-874"
Probably not exactly what you are looking for, but you may be able to
find what you need in here....
You can view the source directly here: http://search.cpan.org/src/ELIZABETH...Trieve/UTF8.pm
HTH - and yes, c.l.php is great! :P
--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
SEO Competition League: http://seo.koivi.com/
On Tue, 27 Apr 2004 13:34:25 +0000 (UTC), Daniel Tryba
<ne********************@canopus.nl> wrote: So what is keeping you from looking at the iconv source? You don't need any php support for that :)
I am, actually. But searching through 15MB of code to find out how the
functions I need work together takes time ;)
Grey
--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com - Orca Knowledgebase: Completely CSS styleable
Knowledgebase/FAQ system
On Tue, 27 Apr 2004 13:50:38 GMT, Justin Koivisto <sp**@koivi.com> wrote: OK, if you aren't going to hit the PHP iconv C source to find it, how about some Perl?
http://search.cpan.org/~elizabeth/Ne...NVERT_TO_UTF-8
...of particular interest to you: "windows874 convert from windows-874 to UTF-8" "illegal_windows874 remove characters illegal for windows-874"
Awesome! Exactly what I needed! It's now translated to PHP and working
perfectly!
Thanks muchly muchly, man :D I owe you a beer.
Grey
GreyWyvern wrote: On Tue, 27 Apr 2004 13:50:38 GMT, Justin Koivisto <sp**@koivi.com> wrote:
OK, if you aren't going to hit the PHP iconv C source to find it, how about some Perl?
http://search.cpan.org/~elizabeth/Ne...NVERT_TO_UTF-8
...of particular interest to you: "windows874 convert from windows-874 to UTF-8" "illegal_windows874 remove characters illegal for windows-874"
Awesome! Exactly what I needed! It's now translated to PHP and working perfectly!
Thanks muchly muchly, man :D I owe you a beer.
No problem, but I believe that this would make 2 beers now. ;)
--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
On Tue, 27 Apr 2004 18:17:57 GMT, Justin Koivisto <sp**@koivi.com> wrote: Thanks muchly muchly, man :D I owe you a beer.
No problem, but I believe that this would make 2 beers now. ;)
Really? What was the first one for? No matter, this one was worth at
least two anyway ;P
Grey
GreyWyvern wrote: On Tue, 27 Apr 2004 18:17:57 GMT, Justin Koivisto <sp**@koivi.com> wrote:
Thanks muchly muchly, man :D I owe you a beer.
No problem, but I believe that this would make 2 beers now. ;)
Really? What was the first one for? No matter, this one was worth at least two anyway ;P
PNG-24 transparencies... ;)
--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
On Tue, 27 Apr 2004 20:46:18 GMT, Justin Koivisto <sp**@koivi.com> wrote: GreyWyvern wrote:
On Tue, 27 Apr 2004 18:17:57 GMT, Justin Koivisto <sp**@koivi.com> wrote:
Thanks muchly muchly, man :D I owe you a beer.
No problem, but I believe that this would make 2 beers now. ;) Really? What was the first one for? No matter, this one was worth at least two anyway ;P
PNG-24 transparencies... ;)
Gah! 'tis true! Make it an even three then :)
Grey This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: inquirydog |
last post by:
Hello-
I, the inquirydog, would like to solicit suggestions for a new
web page I am making:
I am creating a simple website that will translate concepts
between windows os's, Linux, and the...
|
by: Apotheosis |
last post by:
The problem professor gave us is:
Write a program which reads two integer values. If the first is less
than the second, print the message "up". If the second is less than
the first, print the...
|
by: quortex |
last post by:
Hi all,
I have a class which contains a method called GetMessage(). When I
compile and unit test it all is well.
However in the application I want to use it in there appears to be a
conflict...
|
by: MLH |
last post by:
The following SQL returns PRECISELY what I want:
SELECT TOP 1 tblCorrespondence.CorrespID,
tblOutboundTypes.OTypDescription, tblCorrespondence.OutDate,
tblCorrespondence.VehicleJobID,...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted...
| |
by: alaa123 |
last post by:
please i really need help to make a start
I need to write an XSLT script that takes a file as its
input and produces bargraph as its output
the file (input)
svg:svg...
|
by: =?Utf-8?B?TXIuIENoaXA=?= |
last post by:
Greetings,
This is my first post and I am hoping (praying) someone could help me. I am
not a programmer, I just know enough to be dangerous.
I have a custom application someone developed for...
|
by: kovariadam |
last post by:
Hi,
Does anybody know why i get this error:
SQL0176N The second, third or fourth argument of the TRANSLATE scalar
function is incorrect. SQLSTATE=42815
with this query:
SELECT...
|
by: ChrisElias271 |
last post by:
Hi All,
I'm desperately trying to use an old access query and translate it to
be used in SQL enterprise manager.
The dataset i'm trying to update is too large for access (28 million
rows).
|
by: dnuthtsaso |
last post by:
Where do i put my code in this
--------------------------
#include <windows.h>
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |