Page 62 of 106 FirstFirst ... 124252535455565758596061626364656667686970717282 ... LastLast
Results 611 to 620 of 1053
Like Tree13Likes
Discuss Is UIPhoneFormats.plist gone on firmware 2.1? at the PwnageTool - Hackint0sh.org; Hi, I have just written a small PHP script to dump UIDefaultFormats.phoneformat to an easy ...
  1. #611
    Newbie Array

    Join Date
    Feb 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default PHP for converting UIDefaultFormats.phoneformat to XML

    Hi,
    I have just written a small PHP script to dump UIDefaultFormats.phoneformat to an easy to parse XML document. This can help if you want to use this formatting information in other desktop applications.

    PHP Code:
    <?php
         header
    ('Content-type: text/xml');
         echo 
    '<?xml version="1.0" encoding="ISO-8859-1"?>';
     
        
    $filename "UIDefaultFormats.phoneformat";

        
    // read file in $file string    
        
    $handle fopen($filename'rb');
        
    $file fread($handlefilesize($filename));
        
    fclose($handle);
        
        
    // first 4 bytes = number of countries
        
    list($nb_countries) = array_values(unpack("Vnbcountries"$file));
        
    // split the 12*$nb_nb_countries into 12 bytes chunks then decode
        
    $countries = array();
        foreach (
    str_split(substr($file4$nb_countries 12), 12) as $country_raw) {
            
    array_push($countriesunpack("a4prefix/a4countrycode/Vindex"$country_raw));
        }
        
    // extract the remaining part of the file
        
    $file substr($file$nb_countries 12strlen($file));
        echo 
    "<phone-formats>\n";
        
    // now parse each country from the header
        
    foreach ($countries as $c) {
            
    // decode the descriptor header
            
    list($desc_len$disp_scheme_offset$nb_rules_sets) =
                
    array_values(unpack("Vdesc_len/Vdisp_scheme_off/Vnb_rules_sets"substr($file$c['index'], 12)));
            
    // decode the list of possible prefixes for national/international
            
    list($local_nat_raw) = array_values(unpack("a*localnatarr"substr($file$c['index']+12$desc_len-12)));

            echo 
    "  <country prefix='".$c['prefix']."' country-code='".$c['countrycode']."'";
            echo 
    " codes='".implode(";"explode(chr(0), $local_nat_raw))."'>\n";
            
            
    $index $c['index'] + $desc_len;                // points to the rules section
            
    $scheme_base $index $disp_scheme_offset;    // points to the scheme section
            
            // iterate over rules sets
            
    for ($rule_set_idx 0$rule_set_idx $nb_rules_sets$rule_set_idx++) {
                
    // read the number of digits to consider and the number of following rules
                
    list($digits$nb_rules) = array_values(unpack("vdigits/vrules"substr($file$index4)));
                echo 
    "     <rules digits='$digits'>\n";
                
                for (
    $rule 0$rule $nb_rules$rule++) {        // iterate through individual rules
                    
    $rule_raw substr($file$index $rule*1616);        // each rule is 16 bytes
                    
    list($prefix_min$prefix_max$total_digits,$unkn1,$unkn2,$unkn3 ,$scheme_offset) =
                        
    array_values(unpack("Vmin/Vmax/Cdigits/Cunknown1/Cunknown2/Cunknown3/Voffset"$rule_raw));
                    
                    
    // now extract the rule scheme
                    
    $scheme substr($file$scheme_base+$scheme_offsetstrpos($filechr(0), $scheme_base+$scheme_offset)-$scheme_base-$scheme_offset);

                    echo 
    "        <rule prefix-min='$prefix_min' prefix-max='$prefix_max'";
                    echo 
    " total-digits='$total_digits' unkn='$unkn1;$unkn2;$unkn3' scheme='$scheme' />\n";
                }
                echo 
    "     </rules>\n";
                
    $index += $nb_rules*16;        // move to next rules-set
            
    }
            echo 
    "  </country>\n";
        }
        echo 
    "</phone-formats>";
    ?>
    I hope this helps.


  2. #612
    Newbie Array

    Join Date
    Feb 2009
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by Frank8 View Post
    Azerbaijan is included in Format Fix for 2.2 (Cydia Localization) with
    +994 ## ### ## ##
    0## ### ## ##
    as request in a previous post

    If you prefer
    +994 (##) ###-##-##
    (0##) ###-##-##
    this is the UIDefaultFormats.phoneformat file:
    RapidShare: Easy Filehosting

    remember to set Azerbaijan in Region Format using
    en_AZ
    as explained in Appendix C of pdf document (ispazio.net/en search format)

    and Default.phoneformat is updated from CallerID Fix for 2.2 (Cydia Localization)

    If don't work try this extra fix
    save original file (if present):
    /private/var/mobile/Library/Preferences/com.apple.AppSupport.plist

    for Azerbaijan substitute with (or copy) :
    RapidShare: Easy Filehosting

    and restart.
    Thank you very much for your attention and help. CallerID Fix for 2.2 seems to be working, but UIDefaultFormats.phoneformat only +994 (##) ###-##-## works and i know why, as you said to make other (###) ###-##-## also working i have to select my region..Actually i can do this, i red from ispazio Appendix C manual, and it's written there that to add Azerbaijan in regional format list i have to install erica util, and so so..But i always did the other way to make it work...As default region format USA is selected and so i replaced (###) ###-##-## in the USA Region string ..i mean the phone thought that i'm in USA and showed the wright format...can you plzz again reedit it and change only usa string, just to replace usa default string number, with this one (###) ###-##-##..
    Simply you leave +994 (##) ###-##-## as it is in az array and don't delete it, and only replace (###) ###-##-## in the US array with the similar format, i think it looks like ###-####....And it'll work finally 100% i'm sure

  3. #613
    Senior Professional Array

    Join Date
    Sep 2008
    Location
    Italy
    Posts
    313
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    33

    Default

    Quote Originally Posted by kayzer View Post
    Thank you very much for your attention and help. CallerID Fix for 2.2 seems to be working, but UIDefaultFormats.phoneformat only +994 (##) ###-##-## works and i know why, as you said to make other (###) ###-##-## also working i have to select my region..Actually i can do this, i red from ispazio Appendix C manual, and it's written there that to add Azerbaijan in regional format list i have to install erica util, and so so..But i always did the other way to make it work...As default region format USA is selected and so i replaced (###) ###-##-## in the USA Region string ..i mean the phone thought that i'm in USA and showed the wright format...can you plzz again reedit it and change only usa string, just to replace usa default string number, with this one (###) ###-##-##..
    Simply you leave +994 (##) ###-##-## as it is in az array and don't delete it, and only replace (###) ###-##-## in the US array with the similar format, i think it looks like ###-####....And it'll work finally 100% i'm sure
    I don't like your solution because if you receive a call
    from US the number is formatted as for Azerbaijan (not a general solution)

    however if you want to try it:
    RapidShare: Easy Filehosting

  4. #614
    Newbie Array

    Join Date
    Feb 2009
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Smile

    Quote Originally Posted by Frank8 View Post
    I don't like your solution because if you receive a call
    from US the number is formatted as for Azerbaijan (not a general solution)

    however if you want to try it:
    RapidShare: Easy Filehosting
    Perfect, thank you for your help !!...US phone number format is not so important, it'll be shown just not proper..Thanks again for help

  5. #615
    Newbie Array

    Join Date
    Feb 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default adjust numbers! Need help

    Hi,

    I read a lot of posts and threads about this issue and also I found the ABAddressFormats.plist but not successful while wanted to edit it (windows User).

    How can you adjust the script in iPhone to convert any number to the number format of the US.e.g
    how to automatically convert 0912xxxxx into 0(912)xxx xxxx

    If I've to use ABAddressFormats.plist please provide me which software I've to use.

    Regards


  6. #616
    Senior Professional Array

    Join Date
    Sep 2008
    Location
    Italy
    Posts
    313
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    33

    Default

    Quote Originally Posted by Mastersi View Post
    Hi,

    I read a lot of posts and threads about this issue and also I found the ABAddressFormats.plist but not successful while wanted to edit it (windows User).

    How can you adjust the script in iPhone to convert any number to the number format of the US.e.g
    how to automatically convert 0912xxxxx into 0(912)xxx xxxx

    If I've to use ABAddressFormats.plist please provide me which software I've to use.

    Regards
    ABAddressFormats.plist is for contact addresses , has nothing to do ,
    UIDefaultFormats.phoneformat is for number formatting , but unfortunately
    is a set of binary rules not easy to modify .

    Format Fix for 2.2 (Cydia Localization) adds about 50 local conventions for
    writing telephone numbers to standard firmware .

    Check if your country is included .

  7. #617
    Newbie Array

    Join Date
    Feb 2009
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Any way to install CallerID Fix for 2.2.1 whithout the iSpazio repository (because the down)?. I just install 2.2.1 and now i cannot see right when someone call.

    Thanks.

  8. #618
    Newbie Array

    Join Date
    Mar 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default New Moroccan phone format (March 2009)

    All phone numbers in Morocco have just been modified. Now there is one more number inside our phone numbers.

    THE VIEW FROM FEZ: Telephone numbers change in Morocco

    the new format is :

    +212 # ## ## ## ##
    or
    ## ## ## ## ##

    can you please change it ?

    thanks a lot

  9. #619
    Senior Professional Array

    Join Date
    Sep 2008
    Location
    Italy
    Posts
    313
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    33

    Default

    Quote Originally Posted by boukob View Post
    All phone numbers in Morocco have just been modified. Now there is one more number inside our phone numbers.

    THE VIEW FROM FEZ: Telephone numbers change in Morocco

    the new format is :

    +212 # ## ## ## ##
    or
    ## ## ## ## ##

    can you please change it ?

    thanks a lot
    This is Format Fix prerelease file for Morocco 2009

    save original file:
    /System/Library/Frameworks/UIKit.framework/PhoneFormats/
    UIDefaultFormats.phoneformat

    for Morocco substitute with:

    RapidShare: Easy Filehosting

    and restart.

  10. #620
    Newbie Array

    Join Date
    Mar 2009
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    how do you change this file? I need to change it too.. Can you tell me what to open it with, or can I tell you what I need and someone to fix it?


 

 

Similar Threads

  1. [Firmware] 2.0 Beta > plist for Exchange-Folders and Preferences?
    By michis0806 in forum iPhone Developer Exchange
    Replies: 3
    Last Post: 07-09-2008, 05:11 PM
  2. 1.1.3 carrier.plist & operator.plist inaccessible
    By legitimie in forum iPhone "2G" (Rev. 1)
    Replies: 23
    Last Post: 02-29-2008, 06:31 PM
  3. Replies: 5
    Last Post: 11-27-2007, 10:36 PM
  4. Firmware 1.1.1 and CarrierMap.plist
    By timschuerewegen in forum General
    Replies: 6
    Last Post: 10-21-2007, 06:49 PM
  5. Replies: 0
    Last Post: 08-19-2007, 06:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:47 PM.
twitter, follow us!