freak Posted March 2, 2005 Report Share Posted March 2, 2005 Izveidoju .php failu un ieseivoju kaa utf-8 , bet tad nestrada komanda: header("Location: main.php"); ,jo izvada Cannot add header information - headers already sent by...blablabal; Ja sho failu ieseivo unicode tad viss strada. Link to comment Share on other sites More sharing options...
Venom Posted March 2, 2005 Report Share Posted March 2, 2005 atver ar citu redaktoru un paskaties - tev pirms <?php būs BOM (2-3 nasaprotāmi simboli) jāglabā nevis UTF-8, bet "UTF-8 Cookie", bez BOM, vai citā redaktorā jāatdzēš tie simboli Use SciTe 4 1st, e.g. VenPad 4 2nd Link to comment Share on other sites More sharing options...
freak Posted March 2, 2005 Author Report Share Posted March 2, 2005 VenPadā nevar , lai uzreiz veidojot failu rakstas utf-8 cookie ? Link to comment Share on other sites More sharing options...
Venom Posted March 2, 2005 Report Share Posted March 2, 2005 nē, tikai ANSI-kodējumi Link to comment Share on other sites More sharing options...
tamster Posted March 2, 2005 Report Share Posted March 2, 2005 Vēl var ieteikt Notepad2... izmantoju tieši "headeraino" UTF-8 failu apstrādei. Vēl var izmantot jebkuru redaktoru kurš neatbalsta UTF. Rapid PHP Editor, piemēram. Link to comment Share on other sites More sharing options...
hmnc Posted March 2, 2005 Report Share Posted March 2, 2005 manuprāt php failus labāk nerakstīt unicodā. visu php kodu sametam parastajā kodejumā un visu ko vajag unicodā sametam atsevišķos failos/db (valodu masīvus, datubāzes, templeitus, uttee tee) Link to comment Share on other sites More sharing options...
bubu Posted March 2, 2005 Report Share Posted March 2, 2005 manuprāt php failus labāk nerakstīt unicodā. visu php kodu sametam parastajā kodejumā un visu ko vajag unicodā sametam atsevišķos failos/db (valodu masīvus, datubāzes, templeitus, uttee tee) 14466[/snapback] Iemesls tā darīt? Link to comment Share on other sites More sharing options...
hmnc Posted March 2, 2005 Report Share Posted March 2, 2005 Iemesls tā darīt? 14471[/snapback] mazāk čakara, ja vajag kaut kur on-fly editēt kodu (caur kādu kreisu līku ftp klientu vai vietā kur nav pieejams editors ar unikoda atbalstu). + php editors, ko es lietoju neatbalsta unicodu. + php kodu parasti jau neraksta ar kreisajiem simboliem ;) un tas ir manuprāt. Link to comment Share on other sites More sharing options...
Recommended Posts