Re: New web inferface (Webif) for SamyGO 2012-04-21
Posted: Sun Apr 22, 2012 2:56 pm
You can change 06_05_apache.init so it runs parallel with Skype?
did you also try this? i didjuuso wrote: what about this:
echo "Content-type: text/html; charset=utf-16"
Code: Select all
echo test | sed -e 's_\(.\)_\x00\1_g' | xxd
Code: Select all
<?php
header('Content-Type: text/html; charset=UTF-16');
mb_http_output('UTF-16');
echo mb_convert_encoding('<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>', 'UTF-16', 'auto');
$filename = "/dtv/usb/sdb/CONTENTS/20120415161645.inf";
$all = file_get_contents($filename, NULL, NULL, -1);
$station = file_get_contents($filename, NULL, NULL, -1, 256);
$name1 = file_get_contents($filename, NULL, NULL, 256, 256);
$name2 = file_get_contents($filename, NULL, NULL, 792, 524);
$description = file_get_contents($filename, NULL, NULL, 1782, 4622);
$language = file_get_contents($filename, NULL, NULL, 6416, 510);
$type = file_get_contents($filename, NULL, NULL, 6926, 256);
echo $station;
echo mb_convert_encoding('<br />', 'UTF-16', 'auto');
echo $name1;
echo mb_convert_encoding('<br />', 'UTF-16', 'auto');
echo mb_convert_encoding($name2, 'UTF-16', 'UTF-16LE');
echo mb_convert_encoding('<br />', 'UTF-16', 'auto');
echo $description;
echo mb_convert_encoding('<br />', 'UTF-16', 'auto');
echo mb_convert_encoding($language, 'UTF-16', 'UTF-16LE');
echo mb_convert_encoding('<br />', 'UTF-16', 'auto');
echo mb_convert_encoding($type, 'UTF-16', 'UTF-16LE');
echo mb_convert_encoding('<br />', 'UTF-16', 'auto');
echo mb_convert_encoding('</body>', 'UTF-16', 'auto');
?>
ok, sorry.juuso wrote:please don`t quote whole hudge posts...
Code: Select all
Widget Server:
Currently used MAC:
DUID: LOG_URL=NULL
CPU: MStar Chip
1st Image version: SWU_T-MST5DEUC_001019_I01_EK000_111019
2nd Image version:
Apache Log
otn stuff
?
networkinfo
SETTING_TYPE=STATIC
DNS_MODE=STATIC
HOST=192.168.1.9
GATEWAY=192.168.1.254
NETMASK=255.255.255.0
DNS=192.168.1.254
nameserver 192.168.1.254
options timeout:3 attempts:1
Other info:
MStar Chip
rootfs / rootfs rw 0 0
/dev/root / squashfs ro,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /dtv tmpfs rw,relatime,size=30720k 0 0
tmpfs /tmp tmpfs rw,relatime,size=307200k 0 0
tmpfs /dsm tmpfs rw,relatime,size=12288k 0 0
tmpfs /core tmpfs rw,relatime,size=20480k 0 0
/dev/stl0/10 /mtd_rwarea rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
/dev/stl0/11 /mtd_exe squashfs ro,relatime 0 0
/dev/stl0/12 /mtd_rocommon squashfs ro,relatime 0 0
/dev/stl1/37 /mtd_rocommons squashfs ro,relatime 0 0
/dev/stl1/33 /mtd_swu rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
/dev/stl1/34 /mtd_contents rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
/dev/stl1/35 /mtd_rwcommon rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
/dev/stl1/36 /mtd_rwdata rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda1 /dtv/usb/sda1 ntfs ro,sync,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0
/dev/sda5 /dtv/usb/sda5 xfs rw,relatime,nouuid,attr2,noquota 0 0
/dev/stl0/10 /etc/passwd rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
/dev/stl0/10 /etc/profile rfs rw,relatime,vfat,llw,iocharset=utf8 0 0
192.168.1.251:/home/Public /dtv/usb/sdj/nfs/192.168.1.251/_home_Public nfs rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,soft,nointr,nolock,proto=tcp,timeo=70,retrans=3,sec=sys,addr=192.168.1.251 0 0
//192.168.1.182/Users /dtv/usb/sdj/smb/192.168.1.182/Users cifs rw,relatime,unc=\\192.168.1.182\Users,username=sysadmin,addr=192.168.1.182,uid=0,gid=0,file_mode=02767,dir_mode=0777,rsize=16384,wsize=57344 0 0
//192.168.1.251/PUBLIC /dtv/usb/sdj/smb/192.168.1.251/PUBLIC cifs rw,relatime,unc=\\192.168.1.251\PUBLIC,username=sysadmin,addr=192.168.1.251,uid=0,gid=0,file_mode=02767,dir_mode=0777,rsize=16384,wsize=57344 0 0
//192.168.1.251/sysadmin /dtv/usb/sdj/smb/192.168.1.251/sysadmin cifs rw,relatime,unc=\\192.168.1.251\sysadmin,username=sysadmin,addr=192.168.1.251,uid=0,gid=0,file_mode=02767,dir_mode=0777,rsize=16384,wsize=57344 0 0
//192.168.1.164/Users /dtv/usb/sdj/smb/192.168.1.164/Users cifs rw,relatime,unc=\\192.168.1.164\Users,username=sysadmin,addr=192.168.1.164,uid=0,gid=0,file_mode=02767,dir_mode=0777,rsize=16384,wsize=57344 0 0